public static void AddAssistant(int playerId) { UserAdmin ua = UserAdminList.Find(iter => iter.Id == playerId); if (null == ua) { return; } ua.RemovePrivileges(AdminMask.BlackRole); ua.AddPrivileges(AdminMask.AssistRole); OnPrivilegesChanged(ua); // if (null != GameGui_N.Instance) // GameGui_N.Instance.mPersonnelManageGui.OnPersonnelInfoChange(); }
// public static void BuildUnLock(int id) { if (!IsBuildLock(id)) { return; } UserAdmin ua = UserAdminList.Find(iter => iter.Id == id); if (null == ua) { return; } ua.RemovePrivileges(AdminMask.BuildLock); OnPrivilegesChanged(ua); // if (null != GameGui_N.Instance) // GameGui_N.Instance.mPersonnelManageGui.OnPersonnelInfoChange(); }
public static void DeleteBlacklist(int id) { if (!IsBlack(id)) { return; } UserAdmin ua = UserAdminList.Find(iter => iter.Id == id); if (null == ua) { return; } ua.RemovePrivileges(AdminMask.BlackRole); OnPrivilegesChanged(ua); // if (null != GameGui_N.Instance) // GameGui_N.Instance.mPersonnelManageGui.OnBlackListInfoChange(); }