Public paste
ActionAtom
By: Cizcuz | Date: Nov 5 2006 06:48 | Format: None | Expires: never | Size: 645 B | Hits: 1387

  1. struct ActionAtomData
  2. {
  3.         enum TRIGGEREVENT {
  4.                 E_TIMER
  5.         };
  6.  
  7.         struct CameraProps
  8.         {
  9.                 vec3 viewpos;
  10.                 vec3 viewangle;
  11.                 EMOVER mover;
  12.         };
  13.  
  14.         struct Anim
  15.         {
  16.                 const char* pszName;
  17.                 unsigned int uLoop;
  18.                 float fDuration;
  19.         };
  20.  
  21.         struct Effect
  22.         {
  23.                 const char* pszEmitter;
  24.                 unsigned long time;
  25.                 EMOVER mover;
  26.         };
  27.  
  28.         struct ActionTrigger
  29.         {
  30.                 TRIGGEREVENT evt;
  31.                 const char* pszActionName;
  32.                 int param1, param2, param3;
  33.         };
  34.  
  35.  
  36.         EMOVER mover;
  37.         std::vector<Anim> AnimList;
  38.         std::vector<Effect> EffectList;
  39.         std::vector<CameraProps> CamList;
  40.         std::vector<ActionTrigger> ATList;
  41.         const char* actionOnInterrupt;
  42.  
  43. };