示例#1
0
 public void OnValueChanged <T>(CVarDef <T> cVar, Action <T> onValueChanged, bool invokeImmediately = false)
     where T : notnull
 {
     OnValueChanged(cVar.Name, onValueChanged, invokeImmediately);
 }
示例#2
0
 public T GetCVar <T>(CVarDef <T> def) where T : notnull
 {
     return(GetCVar <T>(def.Name));
 }
 public void SetCVar <T>(CVarDef <T> def, T value) where T : notnull
 {
     SetCVar(def.Name, value);
 }