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); }
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); }