コード例 #1
0
        public async Task <decimal> GetBalanceAsync(string ownerId, string ownerType)
        {
            var balance = await m_Database.GetBalanceAsync(ownerId, ownerType);

            var getBalanceEvent = new GetBalanceEvent(ownerId, ownerType, balance);
            await m_EventBus.EmitAsync(EconomyPlugin.Instance, this, getBalanceEvent);

            return(balance);
        }
コード例 #2
0
        public async Task <decimal> GetBalanceAsync(string ownerId, string ownerType)
        {
            var balance = await m_Database.GetBalanceAsync(ownerId, ownerType);

            var getBalanceEvent = new GetBalanceEvent(ownerId, ownerType, balance);
            await EventBus.EmitAsync(OpenModComponent, this, getBalanceEvent);

            return(balance);
        }