Implement LockedWrapper.GetAnimationQueues

This commit is contained in:
2023-09-08 01:52:30 -04:00
parent ee0b37725e
commit d845eab6f5
4 changed files with 57 additions and 8 deletions

View File

@@ -15,6 +15,14 @@ class FLockableWrapper {
private:
FCriticalSection Mutex;
EngineWrapper Wrapper;
// Temporary buffers. These are only used
// inside wrapper methods. There's nothing
// persistent in these.
//
TArray<uint32> AQLenBuffer;
TArray<const char*> AQStrBuffer;
public:
friend class FLockedWrapper;
};
@@ -24,9 +32,10 @@ private:
FLockableWrapper& Lockable;
public:
// Import these types into our Namespace.
using IdArray = LuprexCommonTypes::IdArray;
using IdView = LuprexCommonTypes::IdView;
// Import these types into our Namespace.
using IdArray = CommonTypes::IdArray;
using IdView = CommonTypes::IdView;
using StringViewVec = CommonTypes::StringViewVec;
public:
// The constructor of the FLockedWrapper claims the mutex.
@@ -74,4 +83,11 @@ public:
// in the TangibleManager, for example).
//
IdView GetNear(int64 id, double rx, double ry, double rz);
// Get animation queues.
//
// The array returned by this is valid until the
// next time you call this.
//
StringViewVec GetAnimationQueues(IdView ids);
};