refactor: change fakeseed to static method
This commit is contained in:
@@ -27,11 +27,7 @@ void Export_Legacy_GMLib_ServerAPI() {
|
|||||||
return level->setLevelName(name);
|
return level->setLevelName(name);
|
||||||
});
|
});
|
||||||
RemoteCall::exportAs("GMLib_ServerAPI", "setFakeSeed", [](int64_t seed) -> void {
|
RemoteCall::exportAs("GMLib_ServerAPI", "setFakeSeed", [](int64_t seed) -> void {
|
||||||
auto level = GMLIB_Level::getLevel();
|
return GMLIB_Level::setFakeSeed(seed);
|
||||||
if (!level) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
return level->setFakeSeed(seed);
|
|
||||||
});
|
});
|
||||||
RemoteCall::exportAs("GMLib_ServerAPI", "spawnEntity", [](std::pair<Vec3, int> pos, std::string name) -> Actor* {
|
RemoteCall::exportAs("GMLib_ServerAPI", "spawnEntity", [](std::pair<Vec3, int> pos, std::string name) -> Actor* {
|
||||||
return GMLIB_Spawner::spawnEntity(pos.first, pos.second, name);
|
return GMLIB_Spawner::spawnEntity(pos.first, pos.second, name);
|
||||||
|
|||||||
Reference in New Issue
Block a user