INNER CODE UNIT · C++
COMMAND_RATE
trillek-team/tec · client/game.cpp:19
constexpr double COMMAND_RATE = 1.0 / 30.0;
namespace tec {
using networking::MessageType;
void CreateManipulatorEntity() {
proto::Entity entity;
entity.set_id(ENGINE_ENTITIES::MANIPULATOR);
entity.add_components()->mutable_renderable();
EventSystem<EntityCreated>::Get()->Emit(std::make_shared<EntityCreated>(EntityCreated{entity}));
}
void CreateEngineEntities() { CreateManipulatorEntity(); }
Game::Game(OS& _os, std::string config_file_name) :
stats(), os(_os), game_state_queue(this->stats), server_connection(this->stats),
ps(this->simulation.GetPhysicsSystem()), vcs(this->simulation.GetVComputerSystem()),
sound_thread([this]() { ss.Update(); }) {