예제 #1
0
 public void RegisterHook(string tag, NetFunction netFunction)
 {
     Hooks.Add(tag, netFunction);
 }
예제 #2
0
 public void RegisterFunction(String name, NetFunction func)
 {
     if(SharpFunctions.ContainsKey(name))
     {
         throw Error("Function with name \"{0}\" already exists. Please ensure all libraries use proper prefix notation as defined in the specification to avoid this.", name);
     }
     SharpFunctions.Add(name, func);
 }