public static ScriptFunctionRegistry GetInstance() { if (m_instance == null) { m_instance = new ScriptFunctionRegistry(); m_instance.registerBuiltIn(); } return m_instance; }
public XmlScriptExecutor(Game game) { m_registeredFunctions = ScriptFunctionRegistry.GetInstance(game); game.Services.AddService(typeof(IScriptExecutor), this); game.Services.AddService(typeof(XmlScriptExecutor), this); }