コード例 #1
0
        public StatusMgrInsertB(StatusMgr nStatusMgr)
        {
            Account    account_    = nStatusMgr._getPropertyMgr <Account>();
            AccountMgr accountMgr_ = account_._getAccountMgr();

            mAccountMgrId = accountMgr_._getId();
            mAccountId    = account_._getId();
            mTicks        = account_._getTicks();
            mBytes        = Encoding.UTF8.GetBytes(nStatusMgr._getStrStatusIds());
        }
コード例 #2
0
        void _getStatus(StatusGetC nStatusGetC, string nAccountName, long nTicks)
        {
            AccountService accountService_ = __singleton <AccountService> ._instance();

            uint accountMgrId_ = default(uint);
            uint accountId_    = default(uint);

            accountService_._getAccountInfo(out accountMgrId_, out accountId_, nAccountName);
            StatusMgr statusMgr_ = new StatusMgr();

            statusMgr_._runAccountLogin(accountMgrId_, accountId_);
            statusMgr_._getStatus(nStatusGetC, nTicks, accountMgrId_, accountId_);
        }
コード例 #3
0
        void _getStatus(StatusGetC nStatusGetC, Account nAccount, long nTicks)
        {
            AccountMgr accountMgr_   = nAccount._getAccountMgr();
            uint       accountMgrId_ = accountMgr_._getId();
            uint       accountId_    = nAccount._getId();
            uint       propertyId_   = PropertyId <StatusMgr> ._classId();

            StatusMgr statusMgr_ = nAccount._getProperty <StatusMgr>(propertyId_);

            if (statusMgr_._getTicks() == nTicks)
            {
                nStatusGetC.m_tErrorCode = StatusError_.mSucessTicks_;
                return;
            }
            statusMgr_._getStatus(nStatusGetC, nTicks, accountMgrId_, accountId_);
        }
コード例 #4
0
        public StatusCreateC _createStatus(StatusCreateS nStatusCreateS)
        {
            StatusCreateC result_ = new StatusCreateC();

            result_.m_tId = nStatusCreateS.m_tId;
            AccountService accountService_ = __singleton <AccountService> ._instance();

            Account account_ = accountService_._getAccount(nStatusCreateS.m_tAccount);

            if (null != account_)
            {
                uint propertyId_ = PropertyId <StatusMgr> ._classId();

                StatusMgr statusMgr_ = account_._getProperty <StatusMgr>(propertyId_);
                statusMgr_._createStatus(account_, nStatusCreateS, result_);
            }
            else
            {
                result_.m_tErrorCode = StatusError_.mAccount_;
            }
            return(result_);
        }