public void AddScript(ScriptClassInstance script)
 {
     if (script != null && m_ScriptDict != null && !m_ScriptDict.ContainsKey(script.Name))
     {
         m_ScriptDict.Add(script.Name, script);
     }
 }
 public void AddScript(ScriptClassInstance script)
 {
     if (script != null && m_ScriptDict != null && !m_ScriptDict.ContainsKey(script.Name))
     {
         m_ScriptDict.Add(script.Name, script);
     }
 }
Beispiel #3
0
        public void Load(ActorData actorData)
        {
            m_ScriptMgr.Init();

            Id   = GenUniqueId();
            Name = actorData.Name;

            foreach (ScriptData scriptData in actorData.ScriptList)
            {
                ScriptClassInstance script = new ScriptClassInstance();
                script.Init(this, scriptData);

                m_ScriptMgr.AddScript(script);
            }
            m_ScriptMgr.Load();
        }
        public void Load(ActorData actorData)
        {
            m_ScriptMgr.Init();

            Id = GenUniqueId();
            Name = actorData.Name;

            foreach (ScriptData scriptData in actorData.ScriptList)
            {
                ScriptClassInstance script = new ScriptClassInstance();
                script.Init(this, scriptData);

                m_ScriptMgr.AddScript(script);
            }
            m_ScriptMgr.Load();
        }