Skip to content

Commit 67bb749

Browse files
committed
Add entity property properties
1 parent 36c2ef1 commit 67bb749

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/MHServerEmu/Games/Entities/Entity.cs

+17
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,23 @@ public class Entity
114114

115115
#endregion
116116

117+
#region Property Properties (lol)
118+
119+
public int CharacterLevel { get => Properties[PropertyEnum.CharacterLevel]; set => Properties[PropertyEnum.CharacterLevel] = value; }
120+
public int CombatLevel { get => Properties[PropertyEnum.CombatLevel]; set => Properties[PropertyEnum.CombatLevel] = value; }
121+
122+
public ulong PowerUserOverrideId { get => HasPowerUserOverride ? Properties[PropertyEnum.PowerUserOverrideID] : 0; }
123+
public PrototypeId ClusterPrototype { get => HasClusterPrototype ? Properties[PropertyEnum.ClusterPrototype] : PrototypeId.Invalid; }
124+
public PrototypeId EncounterResourcePrototype { get => HasEncounterResourcePrototype ? Properties[PropertyEnum.EncounterResource] : PrototypeId.Invalid; }
125+
public PrototypeId MissionPrototype { get => HasMissionPrototype ? Properties[PropertyEnum.MissionPrototype] : PrototypeId.Invalid; }
126+
127+
public PrototypeId State { get => Properties[PropertyEnum.EntityState]; }
128+
129+
public int CurrentStackSize { get => Properties[PropertyEnum.InventoryStackCount]; }
130+
public int MaxStackSize { get => Properties[PropertyEnum.InventoryStackSizeMax]; }
131+
132+
#endregion
133+
117134
public Entity(EntityBaseData baseData, ByteString archiveData)
118135
{
119136
BaseData = baseData;

0 commit comments

Comments
 (0)