Exemplo n.º 1
0
        /// <summary>
        /// Creates new script manager
        /// </summary>
        public ScriptManager()
        {
            this.ItemScripts    = new ItemScriptCollection();
            this.AiScripts      = new AiScriptCollection();
            this.NpcShopScripts = new NpcShopScriptCollection();
            this.QuestScripts   = new QuestScriptCollection();
            this.NpcScriptHooks = new NpcScriptHookCollection();

            this.GlobalVars = new ScriptVariables();

            if (_compilers.ContainsKey("cs"))
            {
                _compilers["cs"].PreCompilers.Add(new CSharpPreCompiler());
            }
        }
Exemplo n.º 2
0
		/// <summary>
		/// Creates new script manager
		/// </summary>
		public ScriptManager()
		{
			this.ItemScripts = new ItemScriptCollection();
			this.AiScripts = new AiScriptCollection();
			this.NpcShopScripts = new NpcShopScriptCollection();
			this.QuestScripts = new QuestScriptCollection();
			this.DungeonScripts = new DungeonScriptCollection();
			this.PuzzleScripts = new PuzzleScriptCollection();
			this.NpcScriptHooks = new NpcScriptHookCollection();

			this.GlobalVars = new ScriptVariables();

			if (_compilers.ContainsKey("cs"))
				_compilers["cs"].PreCompilers.Add(new CSharpPreCompiler());
		}
Exemplo n.º 3
0
        public ScriptManager()
        {
            _compilers = new Dictionary <string, Compiler>();
            _compilers.Add("cs", new CSharpCompiler());
            _compilers.Add("boo", new BooCompiler());

            _scripts             = new Dictionary <string, Type>();
            _itemScripts         = new Dictionary <int, ItemScript>();
            _aiScripts           = new Dictionary <string, Type>();
            _shops               = new Dictionary <string, NpcShopScript>();
            _questScripts        = new Dictionary <int, QuestScript>();
            _clientEventHandlers = new Dictionary <long, Dictionary <SignalType, Action <Creature, EventData> > >();

            _hooks = new Dictionary <string, Dictionary <string, List <ScriptHook> > >();

            _creatureSpawns = new Dictionary <int, CreatureSpawn>();

            _scriptsToDispose = new List <IDisposable>();

            this.GlobalVars = new ScriptVariables();
        }