示例#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
 public void Add(StageType stage, string name, BuiltinFlags direction)
 {
     Add(stage, name, direction, null);
 }