public void GetActions(Entity self, BaseEvent msg, EUseSource source) { if (msg is DownEvent && source == EUseSource.Item) { msg.OnEvent += Travel; } }
public void GetActions(Entity self, BaseEvent message, EUseSource source) { if (message is ConsumeEvent evt && source == EUseSource.Item) { evt.OnEvent += Drink; } // TODO: Throwing potions }
public void GetActions(Entity self, BaseEvent message, EUseSource source) { if (source == EUseSource.Item) { if (message is ConsumeEvent) // TODO, others { message.PostEvent += Consume; } } }
public void GetActions(Entity self, BaseEvent msg, EUseSource source) { //if (source == EUseSource.Item && MessageType.IsAssignableFrom(msg.GetType())) // msg.OnEvent += Genocide; }