protected override ITextureResource ClientCreateIcon() { using (var result = WallTextureChunkSelector.GetRegion(NeighborsPattern.None, NeighborsPattern.None)) { return(this.TextureAtlasPrimary.Chunk((byte)result.Primary.AtlasChunkPosition.X, (byte)result.Primary.AtlasChunkPosition.Y)); } }
private static WallTextureChunkSelector.WallChunkWithOverlays SharedGetAtlasTextureChunkPosition( Tile tile, IProtoObjectWall protoWall, bool isConsiderDestroyed, bool isConsiderConstructionSites) { SharedCalculateNeighborsPattern(tile, protoWall, out var sameTypeNeighbors, out var compatibleTypeNeighbors, isConsiderDestroyed, isConsiderConstructionSites); return(WallTextureChunkSelector.GetRegion(sameTypeNeighbors, compatibleTypeNeighbors)); }