public static void AddBlock(int id, BBlockTemplate block) { if (id >= 255) { throw new System.Exception("The max block id is 254."); } Blocks[id] = block; }
public static void Initialise() { Blocks = new BBlockTemplate[255]; Blocks[0] = new BBlockTemplate("OutsideBounds", BBlockType.Empty, new RectangleF(0, 0, AppInfo.TILESIZE, AppInfo.TILESIZE)); }