GameConditionList Count() Methods
v4.0
GameCondition has additional Count() methods.
public int CountPeriodic(string uid = null) // Conditions w/ periodic effects
public int CountInfinite(string uid = null) // Conditions which do not expire
public int CountStack(string uid = null) // Conditions which stack when new ones of the same are added
public int CountStackDistinct(string uid = null) // Number of different conditions which stack
public int CountLevel(int level, string uid = null) // Number of conditions of this level
public int CountLevelGreaterThan(int level, string uid = null) // Number greater than this level
public int CountLevelLessThan(int level, string uid = null) // Number less than this level
public int CountHasExpirationCondition(string uid = null) // Number which have a expiration condition
// These deal with real-world seconds, rather than in-game time
public int CountExpiringBeforeRealTime(float timeToAdd, string uid = null) // number expiring before now + an amount of real-world seconds
public int CountExpiringAfterRealTime(float timeToAdd, string uid = null) // number expiring after now + an amount of real-world seconds
// These utilize the TimeSpan class to specify number of in-game time
public int CountExpiringBefore(float seconds = 0f, float minutes = 0f, float hours = 0f, float days = 0f,
float weeks = 0f, float months = 0f, float seasons = 0f, float years = 0f, string uid = null)
public int CountExpiringAfter(float seconds = 0f, float minutes = 0f, float hours = 0f, float days = 0f,
float weeks = 0f, float months = 0f, float seasons = 0f, float years = 0f, string uid = null)
public int CountExpiringBefore(TimeSpan timeSpan, string uid = null)
public int CountExpiringAfter(TimeSpan timeSpan, string uid = null)Examples
Last updated
Was this helpful?