public List <Rectangle>[] walls_of_ground(PlatformObject po) { BlockObject bo = new BlockObject(0, 0, po.state); bo.Position = new Vector2(po.x, po.y); return(walls_of_ground(bo)); }
/// <summary> /// Load a platform from a saved version /// </summary> /// <param name="sp">A saved platform </param> /// <returns>A map platform (a real one)</returns> public static MapPlatform LoadPlatform(SavePlatform sp) { PlatformObject[] objs = new PlatformObject[sp.platform.Length]; for (int i = 0; i < objs.Length; i++) { objs[i] = PlatformObject.LoadBlock(sp.platform[i]); } return(new MapPlatform(objs, sp.x_offset, sp.y_offset)); }