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); }
private string GetKey(BuiltinVariableInfo info) { return(GetKey(info.Stage, info.Name)); }