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:
parent
b18dfcbb63
commit
68bd9529f9
5 changed files with 51 additions and 8 deletions
|
|
@ -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; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue