Convert anim step hashes from uint64 to int64, because blueprint has no uint64
This commit is contained in:
@@ -28,7 +28,7 @@ public:
|
||||
bool Finished;
|
||||
|
||||
UPROPERTY()
|
||||
uint64 Hash;
|
||||
int64 Hash;
|
||||
|
||||
UPROPERTY()
|
||||
TArray<uint8> Body;
|
||||
@@ -37,7 +37,7 @@ public:
|
||||
FString Blueprint;
|
||||
|
||||
FlxAnimationStep() : Finished(false), Hash(0), Body(), Blueprint() {}
|
||||
FlxAnimationStep(uint64 h, std::string_view b);
|
||||
FlxAnimationStep(int64 h, std::string_view b);
|
||||
|
||||
// Auto-Execute
|
||||
//
|
||||
@@ -122,11 +122,11 @@ public:
|
||||
////////////////////////////////////////////////
|
||||
|
||||
struct FlxAnimationStepView {
|
||||
uint64 Hash;
|
||||
int64 Hash;
|
||||
std::string_view Body;
|
||||
|
||||
FlxAnimationStepView() : Hash(0), Body("") {}
|
||||
FlxAnimationStepView(uint64 h, std::string_view b) : Hash(h), Body(b) {}
|
||||
FlxAnimationStepView(int64 h, std::string_view b) : Hash(h), Body(b) {}
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////
|
||||
@@ -194,7 +194,7 @@ public:
|
||||
|
||||
// Peek at the hash of the next animation step.
|
||||
//
|
||||
uint64 PeekHash();
|
||||
int64 PeekHash();
|
||||
|
||||
// Convert an AnimQueue to an FString.
|
||||
//
|
||||
@@ -231,7 +231,7 @@ public:
|
||||
|
||||
// Convert an AnimStep to an FString.
|
||||
//
|
||||
static FString DebugString(bool finished, uint64 hash, std::string_view body);
|
||||
static FString DebugString(bool finished, int64 hash, std::string_view body);
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////
|
||||
@@ -294,13 +294,13 @@ public:
|
||||
// animation to be marked as finished, which in turn causes
|
||||
// 'GetCurrentStep' to advance to the next animation.
|
||||
//
|
||||
void FinishedAnimation(uint64 Hash);
|
||||
void FinishedAnimation(int64 Hash);
|
||||
|
||||
// Return true if an animation step is marked finished.
|
||||
//
|
||||
// Also return true if the animation step is not found.
|
||||
//
|
||||
bool IsFinished(uint64 Hash);
|
||||
bool IsFinished(int64 Hash);
|
||||
|
||||
// Skip to the end of the animation queue.
|
||||
//
|
||||
@@ -309,6 +309,10 @@ public:
|
||||
//
|
||||
void SkipToEnd();
|
||||
|
||||
// Get all the hashes of all the animation steps.
|
||||
//
|
||||
TArray<int64> GetHashes();
|
||||
|
||||
// Return the first unfinished animation.
|
||||
//
|
||||
const FlxAnimationStep *FirstUnfinished() const;
|
||||
@@ -319,7 +323,7 @@ public:
|
||||
|
||||
// Return the first animation with the specified hash.
|
||||
//
|
||||
const FlxAnimationStep *FindAnimation(uint64 hash) const;
|
||||
const FlxAnimationStep *FindAnimation(int64 hash) const;
|
||||
|
||||
// Clear the 'Changed' flag.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user