Beispiel #1
0
        public object Clone()
        {
            var obj = new CozyTiledData(DataSize.X, DataSize.Y);

            Array.Copy(this.Data, obj.Data, Data.Length);
            return(obj);
        }
Beispiel #2
0
 public CozyTiledMap(Point MapSize)
 {
     TiledMapSize    = MapSize;
     TiledData       = new CozyTiledData(MapSize.X, MapSize.Y);
     ContentSize     = new Vector2(NodeContentSize.X * MapSize.X, 
         NodeContentSize.Y * MapSize.Y);
 }
Beispiel #3
0
 public CozyTiledMap(Point MapSize)
 {
     TiledMapSize = MapSize;
     TiledData    = new CozyTiledData(MapSize.X, MapSize.Y);
     ContentSize  = new Vector2(NodeContentSize.X * MapSize.X,
                                NodeContentSize.Y * MapSize.Y);
 }
Beispiel #4
0
 public TiledMapDataContainer(int x, int y)
 {
     TiledData   = new CozyTiledData(x, y);
     MapSize     = new Point(x, y);
 }
Beispiel #5
0
 public object Clone()
 {
     var obj = new CozyTiledData(DataSize.X, DataSize.Y);
     Array.Copy(this.Data, obj.Data, Data.Length);
     return obj;
 }