Example #1
0
 public SaveObject(PotItem o) //Pot Item
 {
     this.x     = o.x;
     this.y     = o.y;
     this.tid   = o.id;
     this.layer = (byte)(o.bg2 == true ? 1 : 0);
     type       = typeof(PotItem);
 }
Example #2
0
        public void readItems(BinaryReader br)
        {
            short count = br.ReadInt16();

            for (int j = 0; j < count; j++)
            {
                //<Items Data>
                //byte ID ,byte X, byte Y, byte Layer
                byte id  = br.ReadByte();
                byte x   = br.ReadByte();
                byte y   = br.ReadByte();
                bool bg2 = br.ReadBoolean();

                PotItem p = new PotItem(id, x, y, bg2);
                activeScene.room.pot_items.Add(p);
            }
        }