예제 #1
0
 internal Arena(string name, TileLocation home, TileLocation redSpawn, TileLocation blueSpawn, TileLocation topLeft, TileLocation bottomRight, BunkerTile red, BunkerTile blue, ArenaStat stats = null, List <Script> scripts = null)
 {
     Name        = name;
     Home        = home;
     RedSpawn    = redSpawn;
     BlueSpawn   = blueSpawn;
     TopLeft     = topLeft;
     BottomRight = bottomRight;
     Red         = red;
     Blue        = blue;
     if (stats == null)
     {
         Stats = new ArenaStat();
     }
     else
     {
         Stats = stats;
     }
     if (scripts == null)
     {
         Scripts = new List <Script>();
     }
     else
     {
         Scripts = scripts;
     }
 }
예제 #2
0
 internal Arena(string name, int homeX, int homeY, int redSpawnX, int redSpawnY, int blueSpawnX, int blueSpawnY, int topLeftX, int topLeftY, int bottomRightX, int bottomRightY, int redID, int redWall, int redPaint, int blueID, int blueWall, int bluePaint, string stats, string scriptBlob)
 {
     Name        = name;
     Home        = new TileLocation(homeX, homeY);
     RedSpawn    = new TileLocation(redSpawnX, redSpawnY);
     BlueSpawn   = new TileLocation(blueSpawnX, blueSpawnY);
     TopLeft     = new TileLocation(topLeftX, topLeftY);
     BottomRight = new TileLocation(bottomRightX, bottomRightY);
     Red         = new BunkerTile(redID, redWall, redPaint);
     Blue        = new BunkerTile(blueID, blueWall, bluePaint);
     Stats       = ArenaStat.DeBlob(stats);
     Scripts     = Script.DeBlob(scriptBlob);
 }