예제 #1
0
        public void Add(StageType stage, string name, BuiltinFlags direction, Action onUseAction)
        {
            BuiltinVariableInfo info = new BuiltinVariableInfo();

            info.Name      = name;
            info.Stage     = stage;
            info.Flags     = direction | (onUseAction != null ? BuiltinFlags.HasAction : 0);
            info.UseAction = onUseAction;
            m_Builtins.Add(GetKey(info), info);
        }
예제 #2
0
 private string GetKey(BuiltinVariableInfo info)
 {
     return(GetKey(info.Stage, info.Name));
 }