Version: 
Show / Hide Table of Contents

Class Rule

A RuleEngine Rule

Inheritance
System.Object
Rule
Implements
IRenamable
Namespace: PiXYZ.Tools
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public sealed class Rule : ISerializationCallbackReceiver, IRenamable

Fields

isCollapsed

Declaration
public bool isCollapsed
Field Value
Type Description
System.Boolean

isEnabled

Declaration
public bool isEnabled
Field Value
Type Description
System.Boolean

name

Declaration
public string name
Field Value
Type Description
System.String

rules

Declaration
[NonSerialized]
public RuleSet rules
Field Value
Type Description
RuleSet

Properties

blocksCount

Declaration
public int blocksCount { get; }
Property Value
Type Description
System.Int32

isLastRule

Declaration
public bool isLastRule { get; }
Property Value
Type Description
System.Boolean

Methods

appendBlock(RuleBlock)

Declaration
public void appendBlock(RuleBlock block)
Parameters
Type Name Description
RuleBlock block

getBlock(Int32)

Declaration
public RuleBlock getBlock(int i)
Parameters
Type Name Description
System.Int32 i
Returns
Type Description
RuleBlock

getBlockIndex(RuleBlock)

Declaration
public int getBlockIndex(RuleBlock block)
Parameters
Type Name Description
RuleBlock block
Returns
Type Description
System.Int32

insertBlock(RuleBlock, Int32)

Declaration
public void insertBlock(RuleBlock block, int index)
Parameters
Type Name Description
RuleBlock block
System.Int32 index

OnAfterDeserialize()

Declaration
public void OnAfterDeserialize()

OnBeforeSerialize()

Declaration
public void OnBeforeSerialize()

removeBlock(RuleBlock)

Declaration
public void removeBlock(RuleBlock block)
Parameters
Type Name Description
RuleBlock block

removeBlockAt(Int32)

Declaration
public void removeBlockAt(int index)
Parameters
Type Name Description
System.Int32 index

setBlock(Int32, RuleBlock)

Declaration
public void setBlock(int i, RuleBlock block)
Parameters
Type Name Description
System.Int32 i
RuleBlock block

Explicit Interface Implementations

IRenamable.name

Declaration
string IRenamable.name { get; set; }
Returns
Type Description
System.String

Implements

IRenamable
Back to top PiXYZ Plugin for Unity 2019.1