Beispiel #1
0
        public void SetObjectTile(int x, int y, TileGraphics tile)
        {
            GameObject o = GetObject(x, y);

            if (o != null)
            {
                o.Graphics.Index  = tile.Index;
                o.Graphics.Color1 = tile.Color1;
                o.Graphics.Color2 = tile.Color2;
                o.Graphics.Color3 = tile.Color3;
            }
        }
Beispiel #2
0
        public GameObject(GameObject other)
        {
            Graphics = new TileGraphics();
            Bytes    = new List <byte>();

            Graphics.Index  = other.Graphics.Index;
            Graphics.Color1 = other.Graphics.Color1;
            Graphics.Color2 = other.Graphics.Color2;
            Graphics.Color3 = other.Graphics.Color3;

            foreach (byte b in other.Bytes)
            {
                Bytes.Add(b);
            }
        }
Beispiel #3
0
 public GameObject(TileGraphics graphics, List <byte> bytes)
 {
     Graphics = graphics;
     Bytes    = bytes;
 }
Beispiel #4
0
 public GameObject()
 {
     Graphics = new TileGraphics();
     Bytes    = new List <byte>();
 }