This commit is contained in:
2022-05-08 00:40:11 +04:00
parent 02160f8b33
commit 6d60df5c01
19 changed files with 462 additions and 265 deletions
+3 -1
View File
@@ -7,12 +7,14 @@ public class Entity
private static int _idGenerator = 0;
public int EntityId { get; private set; }
public uint OwnerId { get; private set; }
public ushort EntityType { get; private set; }
public byte[] State { get; set; }
public Dictionary<int, byte[]> Properties { get; set; }
public Entity(uint ownerId)
public Entity(uint ownerId, ushort entityType)
{
OwnerId = ownerId;
EntityType = entityType;
EntityId = _idGenerator++;
}
}