Switch to Vec3fp and fp variables for character
This commit is contained in:
1 parent
8df016c0a4
commit
889c6d465b
23 files changed
+384
-406
No files matched your search
@@ -7,6 +7,7 @@
|
||||
#include <string>
|
||||
#include <variant>
|
||||
#include <vector>
|
||||
#include "../navigation/PathFinder.h"
|
||||
|
||||
namespace FRG {
|
||||
|
||||
@@ -25,7 +26,7 @@ struct InitialStateMessage {
|
||||
|
||||
struct DestinationInputMessage {
|
||||
std::uint64_t clientSequence = 0;
|
||||
Eigen::Vector3f target = Eigen::Vector3f::Zero();
|
||||
Vec3fp target;
|
||||
};
|
||||
|
||||
struct CharacterActionInputMessage {
|
||||
@@ -37,7 +38,7 @@ struct CharacterActionInputMessage {
|
||||
struct ScheduledDestinationCommand {
|
||||
std::uint64_t commandSequence = 0;
|
||||
std::string playerId;
|
||||
Eigen::Vector3f target = Eigen::Vector3f::Zero();
|
||||
Vec3fp target;
|
||||
};
|
||||
|
||||
struct ScheduledCharacterEnabledCommand {
|
||||
@@ -73,7 +74,7 @@ public:
|
||||
|
||||
std::uint64_t currentTick() const { return currentTick_; }
|
||||
std::uint64_t schedule(
|
||||
const std::string& playerId, const Eigen::Vector3f& target);
|
||||
const std::string& playerId, const Vec3fp& target);
|
||||
std::uint64_t scheduleCharacterEnabled(
|
||||
const std::string& locationId, const std::string& characterId,
|
||||
bool enabled);
|
||||
|
||||
Reference in new issue
Block a user