Ejemplo n.º 1
0
 public void AddBattleRectangle(int allyno, BattleRect rect)
 {
     {
         if (allyno < Spring.MaxAllies && allyno >= 0)
         {
             RemoveBattleRectangle(allyno);
             MyBattle.Rectangles.Add(allyno, rect);
             con.SendCommand("ADDSTARTRECT", allyno, rect.Left, rect.Top, rect.Right, rect.Bottom);
         }
     }
 }
Ejemplo n.º 2
0
 void OnAddStartRect(string[] args)
 {
     var allyNo = int.Parse(args[0]);
     var left = int.Parse(args[1]);
     var top = int.Parse(args[2]);
     var right = int.Parse(args[3]);
     var bottom = int.Parse(args[4]);
     var rect = new BattleRect(left, top, right, bottom);
     MyBattle.Rectangles[allyNo] = rect;
     StartRectAdded(this, new TasEventArgs(args));
 }