blob: c2f921ddf9a54f8d3843d1e7077422a58358490b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "StarTeleporterObject.hpp"
#include "StarJsonExtra.hpp"
namespace Star {
TeleporterObject::TeleporterObject(ObjectConfigConstPtr config, Json const& parameters) : Object(config, parameters) {
setUniqueId(configValue("uniqueId", Uuid().hex()).optString());
}
Vec2F TeleporterObject::footPosition() const {
if (auto footPos = configValue("teleporterFootPosition"))
return jsonToVec2F(footPos);
return Vec2F();
}
}
|