15 #ifndef COMPONENTS_SHAKEABLE_PROP_H_
16 #define COMPONENTS_SHAKEABLE_PROP_H_
21 #include "components_generated.h"
22 #include "config_generated.h"
23 #include "corgi/component.h"
24 #include "motive/init.h"
25 #include "motive/io/flatbuffers.h"
26 #include "motive/util.h"
35 motive::Motivator1f motivator;
40 virtual void UpdateAllEntities(corgi::WorldTime delta_time);
41 virtual void AddFromRawData(corgi::EntityRef& entity,
const void* data);
42 virtual void InitEntity(corgi::EntityRef& entity);
43 virtual void CleanupEntity(corgi::EntityRef& entity);
45 void set_config(
const Config* config) { config_ = config; }
46 void set_engine(motive::MotiveEngine* engine) { engine_ = engine; }
47 void LoadMotivatorSpecs();
48 void ShakeProps(
float damage_percent,
const mathfu::vec3& damage_position);
51 const Config* config_;
52 motive::MotiveEngine* engine_;
53 motive::OvershootInit motivator_inits[MotivatorSpecification_Count];
62 #endif // COMPONENTS_SHAKEABLE_PROP_H_
Definition: shakeable_prop.h:31
Definition: shakeable_prop.h:38