Ejemplo n.º 1
0
 public void OnAuthorize(uint id, string name, string displayname, Core.GameConstants.Rights rights)
 {
     this.ID          = id;
     this.Name        = name;
     this.displayName = displayname;
     this.AccessLevel = rights;
     Managers.SessionManager.Instance.Add(this);
     this.isAuthorized = true;
 }
Ejemplo n.º 2
0
        public Session(uint sessionId, uint userId, string username, string displayName, Core.GameConstants.Rights rights)
            : base(userId, username, rights)
        {
            this.SessionID       = sessionId;
            this.UserId          = userId;
            this.UserName        = username;
            this.SessionRights   = rights;
            this.UserDisplayName = displayName;

            IsActivated = false;
            IsEnded     = false;
        }