/// <summary> /// Initialise <see cref="WorldSession"/> from an existing <see cref="Account"/> database model. /// </summary> public void Initialise(Account account) { if (Account != null) { throw new InvalidOperationException(); } Account = account; GenericUnlockManager = new GenericUnlockManager(this, account); AccountCurrencyManager = new AccountCurrencyManager(this, account); }
/// <summary> /// Initialise <see cref="WorldSession"/> from an existing <see cref="AccountModel"/> database model. /// </summary> public void Initialise(AccountModel account) { if (Account != null) { throw new InvalidOperationException(); } Account = account; // managers AccountRbacManager = new AccountRBACManager(this, account); GenericUnlockManager = new GenericUnlockManager(this, account); AccountCurrencyManager = new AccountCurrencyManager(this, account); EntitlementManager = new EntitlementManager(this, account); }