com.alicizax.unity.framework/Runtime/Localization/Event/LocalizationChangeEvent.cs

21 lines
495 B
C#
Raw Normal View History

2025-09-05 19:46:30 +08:00
using AlicizaX.Framework.Runtime.Event.Generated;
namespace AlicizaX.Localization
{
[Prewarm(4)]
public readonly struct LocalizationChangeEvent : IEventArgs
{
2025-09-23 12:04:39 +08:00
public readonly string ChangedLanguage;
2025-09-05 19:46:30 +08:00
2025-09-23 12:04:39 +08:00
public LocalizationChangeEvent(string language)
2025-09-05 19:46:30 +08:00
{
ChangedLanguage = language;
}
2025-09-23 12:04:39 +08:00
public static void Publisher(string language)
2025-09-05 19:46:30 +08:00
{
EventPublisher.Publish(new LocalizationChangeEvent(language));
}
}
}