mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
make it a readonly struct to reduce allocations etc
This commit is contained in:
parent
76a0dd9f42
commit
342130e216
@ -155,11 +155,11 @@ namespace NewHorizons.Builder.Body
|
||||
return ImageUtilities.GetTexture(_currentMod, path, wrap: true, linear: linear);
|
||||
}
|
||||
|
||||
internal class Tile
|
||||
private readonly struct Tile
|
||||
{
|
||||
private HeightMapModule.HeightMapTileInfo _info;
|
||||
private string _keyword, _prefix;
|
||||
private Texture2D _texture, _smoothness, _normal;
|
||||
private readonly HeightMapModule.HeightMapTileInfo _info;
|
||||
private readonly string _keyword, _prefix;
|
||||
private readonly Texture2D _texture, _smoothness, _normal;
|
||||
|
||||
public Tile(HeightMapModule.HeightMapTileInfo info, string keyword, string prefix)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user