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