public void Absorb(BackgroundCollection collection) { for (int i = 0; i < Lists.Count; i++) { Lists[i].Absorb(collection.Lists[i]); } }
public void Release() { MyCollection.Release(); MyCollection = null; MyType = null; MyTileSet = null; MyLevel = null; }
public override void Init(Level level) { MyLevel = level; MyCollection = new BackgroundCollection(MyLevel); TR = new Vector2(5000, 2000); BL = new Vector2(-2000, -2000); if (MyTemplate != null) { if (MyTemplate.MadeOfCode) { if (level.Geometry == LevelGeometry.Up || level.Geometry == LevelGeometry.Down) { MyTemplate = BackgroundType._Castle_Vertical; } UseCode(MyTemplate, this); } else if (MyTemplate.MadeOfText) { Load(MyTemplate.File); } } }