Exemplo n.º 1
0
 public RawTile2D(RawTile2D raw) : base()
 {
     low   = raw.low;
     high  = raw.high;
     flipX = raw.flipX;
     flipY = raw.flipY;
 }
Exemplo n.º 2
0
        public Tile2D(RawTile2D _rawData)
        {
            rawData        = new RawTile2D(_rawData);
            hash           = rawData.GetHashCode();
            patternSet     = new HashSet <Pattern>();
            tempPatternSet = new HashSet <Pattern>();
            LoadRaw();

            PatternManager.tiles.Add(this);
        }
Exemplo n.º 3
0
        public override bool Equals(System.Object obj)
        {
            RawTile2D raw = obj as RawTile2D;

            return(raw != null && low == raw.low && high == raw.high && flip == raw.flip);
        }