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; } }
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); } }
public GameObject(TileGraphics graphics, List <byte> bytes) { Graphics = graphics; Bytes = bytes; }
public GameObject() { Graphics = new TileGraphics(); Bytes = new List <byte>(); }