initial
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Ragon.Core;
|
||||
|
||||
public class Entity
|
||||
{
|
||||
private static int _idGenerator = 0;
|
||||
public int EntityId { get; private set; }
|
||||
public uint OwnerId { get; private set; }
|
||||
public byte[] State { get; set; }
|
||||
public Dictionary<int, byte[]> Properties { get; set; }
|
||||
|
||||
public Entity(uint ownerId)
|
||||
{
|
||||
OwnerId = ownerId;
|
||||
EntityId = _idGenerator++;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user