public void RegisterHook(string tag, NetFunction netFunction) { Hooks.Add(tag, netFunction); }
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); }