public static void TriggerEvent(string name, EventInfo info, EventLifespan lifespan = EventLifespan.Instant)
        {
            if (Instance == null)
            {
                return;
            }

            var newEvent = new Event.Builder().WithName(name).WithLifespan(lifespan).WithInfo(info).Build();

            Instance.TriggerEventInternal(newEvent);
        }
Ejemplo n.º 2
0
 public Builder WithLifespan(EventLifespan lifespan)
 {
     _lifespan = lifespan;
     return(this);
 }