Ejemplo n.º 1
0
 public void checkDead()
 {
     if (this._data.ContainsKey("dead"))
     {
         MultiAction deadAction = new MultiAction(this._map);
         object[]    deadData   = (object[])this._data["dead"];
         for (int i = 0, len = deadData.Length; i < len; i++)
         {
             deadAction.addAction(new SkillAction(this._map).init((Dictionary <string, object>)deadData[i], this._player));
         }
         this._player.addAction(deadAction);
     }
 }
Ejemplo n.º 2
0
 public override void start()
 {
     //对于魔法 有些是立刻执行的 填写skill 有些是通过触发器执行的。 在live.triggers里面。
     if (this._data.ContainsKey("skill"))
     {
         object[]    skillData   = (object[])this._data["skill"];
         MultiAction multiAction = new MultiAction(this._map);
         for (int i = 0, len = skillData.Length; i < len; i++)
         {
             multiAction.addAction(new SkillAction(this._map).init((Dictionary <string, object>)skillData[i], this._player));
         }
         this.addAction(multiAction);
     }
     base.start();
 }