56 lines
1.2 KiB
C#
56 lines
1.2 KiB
C#
using System;
|
|
|
|
[Config("Configs/Camera/CameraConfig")]
|
|
public class GameCamera
|
|
{
|
|
[ToConfig] public int Camera;
|
|
}
|
|
public class StateMachine : Attribute
|
|
{
|
|
public Type StateMachineContextType;
|
|
public Type StateMachineEnumType;
|
|
|
|
public StateMachine(Type stateMachineContextType, Type stateMachineEnumType)
|
|
{
|
|
StateMachineContextType = stateMachineContextType;
|
|
StateMachineEnumType = stateMachineEnumType;
|
|
}
|
|
}
|
|
|
|
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 StateRaisingEvent : Attribute
|
|
{
|
|
}
|
|
|
|
public class Config : Attribute
|
|
{
|
|
public bool Multiple;
|
|
public string MenuName;
|
|
|
|
public Config(string menuName, bool multiple = false)
|
|
{
|
|
Multiple = multiple;
|
|
MenuName = menuName;
|
|
}
|
|
}
|
|
|
|
public class ToConfig : Attribute
|
|
{
|
|
}
|
|
|
|
public class SceneIdEnum : Attribute
|
|
{
|
|
} |