internal AccessRole GetAccess(Entity faction) { uint role; FactionAccessRoles.TryGetValue(faction, out role); return((AccessRole)role); }
internal void SetAccess(Entity faction, AccessRole accessRole) { if (FactionAccessRoles.ContainsKey(faction)) { FactionAccessRoles[faction] = (uint)accessRole; } else { FactionAccessRoles.Add(faction, (uint)accessRole); } }