update cmd client
This commit is contained in:
@@ -7,26 +7,26 @@ namespace basalt::shared::engine {
|
||||
|
||||
IEngine::~IEngine() {
|
||||
if (this->status != EngineStatus::Stop) {
|
||||
this->Shutdown();
|
||||
this->shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
guid::Guid IEngine::GetGuid() const {
|
||||
guid::Guid IEngine::get_guid() const {
|
||||
throw std::logic_error("unimplemented function");
|
||||
}
|
||||
|
||||
void IEngine::Startup(EngineConfig &&config) {
|
||||
void IEngine::startup(EngineConfig &&config) {
|
||||
if (this->status != EngineStatus::Ready) throw std::runtime_error("unexpected engine status");
|
||||
this->config = std::move(config);
|
||||
this->status = EngineStatus::Running;
|
||||
}
|
||||
|
||||
bool IEngine::Tick() {
|
||||
bool IEngine::tick() {
|
||||
if (this->status != EngineStatus::Running) throw std::runtime_error("unexpected engine status");
|
||||
return false;
|
||||
}
|
||||
|
||||
void IEngine::Shutdown() {
|
||||
void IEngine::shutdown() {
|
||||
if (this->status != EngineStatus::Running) throw std::runtime_error("unexpected engine status");
|
||||
this->status = EngineStatus::Stop;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user