50 lines
1.1 KiB
C#
50 lines
1.1 KiB
C#
using System;
|
|
|
|
public class SceneIdEnum : Attribute
|
|
{
|
|
}
|
|
|
|
public class ToConfig : Attribute
|
|
{
|
|
}
|
|
|
|
public class Config : Attribute
|
|
{
|
|
public bool Multiple;
|
|
public string MenuName;
|
|
public Config(string menuName, bool multiple = false)
|
|
{
|
|
Multiple = multiple;
|
|
MenuName = menuName;
|
|
}
|
|
}
|
|
|
|
public class StateRaisingEvent : Attribute
|
|
{
|
|
}
|
|
|
|
public class State : Attribute
|
|
{
|
|
public Type StateEnum;
|
|
public Type StateMachineContext;
|
|
public bool SilentBitch; // Поэтому нейминг переменных очень важен
|
|
|
|
public State(Type stateEnum,Type stateMachineContext, bool silentBitch = false)
|
|
{
|
|
StateEnum = stateEnum;
|
|
StateMachineContext = stateMachineContext;
|
|
SilentBitch = silentBitch;
|
|
}
|
|
}
|
|
|
|
public class StateMachine : Attribute
|
|
{
|
|
public Type StateMachineContextType;
|
|
public Type StateMachineEnumType;
|
|
|
|
public StateMachine(Type stateMachineContextType, Type stateMachineEnumType)
|
|
{
|
|
StateMachineContextType = stateMachineContextType;
|
|
StateMachineEnumType = stateMachineEnumType;
|
|
}
|
|
} |