Working on viewing distance for enemies
This commit is contained in:
1 parent
33c2b313af
commit
38e45d67b8
6 files changed
+17
-5
No files matched your search
@@ -53,6 +53,7 @@ void CharacterState::save(nlohmann::json& out) const
|
||||
out["pathWaypoints"] = std::move(wpArr);
|
||||
out["currentWaypointIndex"] = currentWaypointIndex;
|
||||
out["homeDriftCheckTimer"] = homeDriftCheckTimer;
|
||||
out["visibleRange"] = visibleRange;
|
||||
if (!onArrivedCallbackName.empty())
|
||||
out["onArrivedCallbackName"] = onArrivedCallbackName;
|
||||
}
|
||||
@@ -69,6 +70,7 @@ void CharacterState::load(const nlohmann::json& in)
|
||||
facingAngle = in.value("facingAngle", facingAngle);
|
||||
targetFacingAngle = in.value("targetFacingAngle", targetFacingAngle);
|
||||
hp = in.value("hp", hp);
|
||||
visibleRange = in.value("visibleRange", visibleRange);
|
||||
enabled = in.value("enabled", enabled);
|
||||
battle_state = in.value("battle_state", battle_state);
|
||||
currentState = static_cast<AnimationState>(in.value("currentState", static_cast<int>(currentState)));
|
||||
|
||||
Reference in new issue
Block a user