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));
     }
 }
Esempio n. 2
0
 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));
 }