コード例 #1
0
 public void Absorb(BackgroundCollection collection)
 {
     for (int i = 0; i < Lists.Count; i++)
     {
         Lists[i].Absorb(collection.Lists[i]);
     }
 }
コード例 #2
0
        public void Release()
        {
            MyCollection.Release();
            MyCollection = null;

            MyType    = null;
            MyTileSet = null;

            MyLevel = null;
        }
コード例 #3
0
        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);
                }
            }
        }