using System; using ShiroginSDK.Runtime.Modules.Data.Scripts.Enums; namespace ShiroginSDK.Runtime.Modules.Events { public static partial class ShiroginEvents { public static class Economy { [Serializable] public class CurrencyChangedEvent { public CurrencyType Type; public int OldValue; public int NewValue; public CurrencyChangedEvent(CurrencyType type, int oldVal, int newVal) { Type = type; OldValue = oldVal; NewValue = newVal; } } [Serializable] public class InventoryUpdatedEvent { public string ItemId; public int NewAmount; public InventoryUpdatedEvent(string itemId, int newAmount) { ItemId = itemId; NewAmount = newAmount; } } [Serializable] public class EconomyAnalyticsEvent { public string Currency; public double Value; public string Source; public bool IsGain; public EconomyAnalyticsEvent(string currency, double value, string source, bool gain) { Currency = currency; Value = value; Source = source; IsGain = gain; } } } } }