Adds hue support to StaticTile (#1321)

### Summary
Fixes missing properties while reading static tiles.

### Screenshots
<img width="463" alt="Screenshot 2023-01-21 093050" src="https://user-images.githubusercontent.com/3953314/213879788-05d2ad7c-c197-4690-9f5b-660bded416cc.png">

Closes #1320
This commit is contained in:
Kamron Batman 2023-01-21 11:19:11 -08:00 • committed by GitHub
parent b18dfcbb63
commit 68bd9529f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 51 additions and 8 deletions

View file

@ -11,6 +11,14 @@ public class StaticTarget : IPoint3D
m_Location.Z += TileData.ItemTable[ItemID].CalcHeight;
}
public StaticTarget(Point3D location, int itemID, int hue)
{
m_Location = location;
ItemID = itemID & TileData.MaxItemValue;
m_Location.Z += TileData.ItemTable[ItemID].CalcHeight;
Hue = hue;
}
[CommandProperty(AccessLevel.Counselor)]
public Point3D Location => m_Location;
@ -31,4 +39,7 @@ public class StaticTarget : IPoint3D
[CommandProperty(AccessLevel.Counselor)]
public int Z => m_Location.Z;
[CommandProperty(AccessLevel.Counselor)]
public int Hue { get; }
}