Class DebugActionEnum
Enum action will be represented as a button selector in the debug menu, triggering the action will cycle the value
Inheritance
System.Object
DebugActionEnum
Inherited Members [+/-]
. . .
Assembly: com.bennykok.runtime-debug-action.dll
Syntax
[Serializable]
public class DebugActionEnum : FluentAction<DebugActionEnum>
Examples
RuntimeDebugSystem.RegisterActions(
DebugActionBuilder.Enum()
.WithName("Set My Enum")
.WithEnumType(typeof(MyEnum))
.WithActionGet(() => myEnum)
.WithActionSet((value) => myEnum = value)
);
Fields
actionChange
Declaration
public Action<int> actionChange
Field Value
Type |
Description |
System.Action<System.Int32> |
|
actionGet
Declaration
public Func<int> actionGet
Field Value
Type |
Description |
System.Func<System.Int32> |
|
actionSet
Declaration
public Action<int> actionSet
Field Value
Type |
Description |
System.Action<System.Int32> |
|
Methods
GetDisplayStatus(Int32)
Declaration
protected string GetDisplayStatus(int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Returns
Type |
Description |
System.String |
|
ResolveAction()
Declaration
public override void ResolveAction()
Overrides
WithActionGet(Func<Int32>)
Declaration
public virtual DebugActionEnum WithActionGet(Func<int> actionGet)
Parameters
Type |
Name |
Description |
System.Func<System.Int32> |
actionGet |
|
Returns
WithActionSet(Action<Int32>)
Declaration
public virtual DebugActionEnum WithActionSet(Action<int> actionSet)
Parameters
Type |
Name |
Description |
System.Action<System.Int32> |
actionSet |
|
Returns
WithEnumType(Type)
Declaration
public virtual DebugActionEnum WithEnumType(Type enumType)
Parameters
Type |
Name |
Description |
System.Type |
enumType |
|
Returns