Example #1
0
        internal AccessRole GetAccess(Entity faction)
        {
            uint role;

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