public void _setAccountName(string nAccountName) { mAccountId = _accountId(nAccountName); mClusterID = HashString._runClusterID(nAccountName); mServerID = HashString._runServerID(nAccountName); mDatabaseId = HashString._runDatabaseId(nAccountName); mTableId = HashString._runTableId(nAccountName); mAccountName = nAccountName; }
public ErrorCode_ _createAccount(string nAccountName, string nNickname, string nPassward) { uint hashName_ = HashString._runServerID(nAccountName); AccountConfig accountConfig_ = __singleton <AccountConfig> ._instance(); uint accountMgrCount_ = accountConfig_._getAccountMgrCount(); uint accountMgrIndex_ = hashName_ % accountMgrCount_; AccountMgr accountMgr_ = mAccountMgrs[accountMgrIndex_]; return(accountMgr_._createAccount(nAccountName, nNickname, nPassward)); }
public Account _getAccount(string nAccountName, uint nDeviceId, uint nDeviceType) { uint hashName_ = HashString._runServerID(nAccountName); AccountConfig accountConfig_ = __singleton <AccountConfig> ._instance(); uint accountMgrCount_ = accountConfig_._getAccountMgrCount(); uint accountMgrIndex_ = hashName_ % accountMgrCount_; AccountMgr accountMgr_ = mAccountMgrs[accountMgrIndex_]; return(accountMgr_._getAccount(nAccountName, nDeviceId, nDeviceType)); }
public __tuple <ErrorCode_, Account> _loginAccount(string nAccountName, string nPassward, uint nDeviceType) { uint hashName_ = HashString._runServerID(nAccountName); AccountConfig accountConfig_ = __singleton <AccountConfig> ._instance(); uint accountMgrCount_ = accountConfig_._getAccountMgrCount(); uint accountMgrIndex_ = hashName_ % accountMgrCount_; AccountMgr accountMgr_ = mAccountMgrs[accountMgrIndex_]; return(accountMgr_._loginAccount(nAccountName, nPassward, nDeviceType)); }