playMaker

Author Topic: Event groups and Event field attribute group filtering.  (Read 2831 times)

Andy22

  • Junior Playmaker
  • **
  • Posts: 99
Event groups and Event field attribute group filtering.
« on: January 10, 2014, 07:25:16 AM »
Hi,

we use a lot of common global events, so our FSM mainly use a common "event" language. This makes the whole system more modular and reusable.

We noticed that the FsmEvent type will expose either only local or all global known events, so this list becomes rather huge and sorting is based on the event name alone.

If we could group events to groups/categories and also define a attribute to only allow setup of certain groups, this would improve usability and help prevent setup errors.

Example:

[EventFilterAttribute("AiEvents","PlayerEvents")
public FsmEvent TheEvent;


This would only display/allow events from the "AiEvents" and "PlayerEvents" category, so a level designer don't need to fully understand what is going on inside the FSM, assuming we get also the ability to expose FsmEvent fields to the inspector like any other FsmTypeXY.

thx Andy

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Event groups and Event field attribute group filtering.
« Reply #1 on: January 10, 2014, 07:28:33 AM »
Hi,

 I like this idea!

 I always use "/" to separate and organize big projects events, then in drop down menus, it splits event sinto sub menus.

bye,

 Jean