Class SharedVariable
Variable can be shared between behaviors in behavior tree
Implements
System.ICloneable
System.IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Ceres.Graph
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public abstract class SharedVariable : ICloneable, IDisposable
Properties
IsExposed
Whether variable is exposed to editor
Declaration
public bool IsExposed { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsGlobal
Whether variable is global
Declaration
public bool IsGlobal { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsShared
Whether variable is shared
Declaration
public bool IsShared { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Bind(SharedVariable)
Bind to other sharedVariable
Declaration
public abstract void Bind(SharedVariable other)
Parameters
| Type | Name | Description |
|---|---|---|
| SharedVariable | other |
Clone()
Clone shared variable by deep copy, an option here is to override for preventing using reflection
Declaration
public virtual SharedVariable Clone()
Returns
| Type | Description |
|---|---|
| SharedVariable |
Dispose()
Unbind self
Declaration
public abstract void Dispose()
GetSerializedData()
Declaration
public virtual SharedVariableData GetSerializedData()
Returns
| Type | Description |
|---|---|
| SharedVariableData |
GetValue()
Declaration
public abstract object GetValue()
Returns
| Type | Description |
|---|---|
| object |
GetValueType()
Declaration
public virtual Type GetValueType()
Returns
| Type | Description |
|---|---|
| System.Type |
Observe()
Create a observe proxy variable
Declaration
public abstract ObserveProxyVariable Observe()
Returns
| Type | Description |
|---|---|
| ObserveProxyVariable |
SetValue(object)
Declaration
public abstract void SetValue(object newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| object | newValue |
Explicit Interface Implementations
ICloneable.Clone()
Declaration
object ICloneable.Clone()
Returns
| Type | Description |
|---|---|
| object |
Implements
System.ICloneable
System.IDisposable