com.alicizax.unity.framework/Runtime/Localization/Event/LocalizationChangeEvent.cs
2025-09-23 12:04:39 +08:00

21 lines
495 B
C#

using AlicizaX.Framework.Runtime.Event.Generated;
namespace AlicizaX.Localization
{
[Prewarm(4)]
public readonly struct LocalizationChangeEvent : IEventArgs
{
public readonly string ChangedLanguage;
public LocalizationChangeEvent(string language)
{
ChangedLanguage = language;
}
public static void Publisher(string language)
{
EventPublisher.Publish(new LocalizationChangeEvent(language));
}
}
}