Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public struct NetworkEntity
- {
- public static NetworkEntity InvalidEntity = new NetworkEntity();
- public int NetId { get; private set; }
- public int LocalId => API.NetworkGetEntityFromNetworkId(NetId); // call this every time I need to work on the entity
- public bool Exists => NetId != 0;
- public NetworkEntity(int netID)
- {
- if (netID == 0)
- {
- throw new ArgumentException("netID == 0");
- }
- NetId = netID;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement