3 #include "KapEngine.hpp"
4 #include "KapEngineDebug.hpp"
5 #include "KapEngineUi.hpp"
6 #include "KapMirror/KapMirror.hpp"
11 enum Direction { LEFT = 0, RIGHT };
16 float initialX = 0.0f;
20 explicit Bullet(std::shared_ptr<KapEngine::GameObject> gameObject);
23 void setDirection(Direction _direction);
25 Direction getDirection()
const;
void onStart() override
call component start
Definition: Bullet.cpp:15
void onFixedUpdate() override
call eachv x ms
Definition: Bullet.cpp:17
void deserialize(KapMirror::NetworkReader &reader) override
Deserialize all the data from payload into this component.
Definition: Bullet.cpp:45
Definition: NetworkReader.hpp:10
void serialize(KapMirror::NetworkWriter &writer) override
Serialize all the data from this component into payload.
Definition: Bullet.cpp:43
Definition: NetworkWriter.hpp:12
Definition: NetworkComponent.hpp:9
Class of engine.
Definition: Engine.hpp:60