Example #1
0
        public static Sprite Ground_Union(GroundSprite number)
        {
            // 13x21
            int x = (int)number % 16;
            int y = (int)number / 16;

            return(GetSprite(@"tilesets\swamp\terrain\swamp.png", new IntRect(32 * x, 32 * y, 32, 32)));
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TileType != global::MM26.IO.Models.Tile.Types.TileType.Void)
            {
                hash ^= TileType.GetHashCode();
            }
            hash ^= items_.GetHashCode();
            if (GroundSprite.Length != 0)
            {
                hash ^= GroundSprite.GetHashCode();
            }
            if (AboveSprite.Length != 0)
            {
                hash ^= AboveSprite.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public PeacefulMapBuilder(Texture2D air, Texture2D ground, Texture2D spike, Texture2D groundGrass) : base(air, ground, spike, groundGrass)
 {
     segments[2] = new GroundSprite(ground);
 }