actions.h (238B)
1 #pragma once 2 3 struct Entity; // fwd 4 struct World; // fwd 5 6 typedef bool (Actions_Run)(struct Entity *e, struct World *w); 7 8 struct Actions_Item { 9 Actions_Run *run; 10 }; 11 12 typedef struct Actions { 13 struct Actions_Item *items; 14 } Actions;