API
Interface
public interface IRulesPlugin
{
// Query
List<RuleEntry> GetAllRuleEntries();
RuleEntry GetRuleEntry(string id);
RuleEntry GetRuleEntryByKey(string key);
// GameObject target
bool GetRuleValue(GameObject target, string key);
void SetRuleValue(GameObject target, string key, bool value);
Dictionary<string, bool> GetAllRuleValues(GameObject target);
void ApplyRuleModification(GameObject target, string key, bool value,
float duration, string sourceId, int priority);
void RemoveRuleModifications(GameObject target, string sourceId);
// RulesEntity target (same signatures using RulesEntity)
bool GetRuleValue(RulesEntity entity, string key);
void SetRuleValue(RulesEntity entity, string key, bool value);
Dictionary<string, bool> GetAllRuleValues(RulesEntity entity);
void ApplyRuleModification(RulesEntity entity, string key, bool value,
float duration, string sourceId, int priority);
void RemoveRuleModifications(RulesEntity entity, string sourceId);
}RuleEntry
Field
Type
Description
RulesEntity
Fields
Field
Type
Description
Core Methods
Modification System
Field
Type
Description
Subscription System
Refresh
Built-in Rule Keys
Key
Description
Internal Behavior
Usage
Last updated
Was this helpful?
