F4MP/tiltedcode/Code/encoding/Structs/AnimationGraphDescriptorManager.h
Jous99 37b16f1547 code upload
codigo original de f4mp y tilted para referencias
2026-01-06 18:45:00 +01:00

28 lines
979 B
C++

#pragma once
#include <Structs/AnimationGraphDescriptor.h>
struct AnimationGraphDescriptorManager
{
TP_NOCOPYMOVE(AnimationGraphDescriptorManager);
static AnimationGraphDescriptorManager& Get() noexcept;
const AnimationGraphDescriptor* GetDescriptor(uint64_t aKey) const noexcept;
const TiltedPhoques::Map<uint64_t, AnimationGraphDescriptor>& GetDescriptors() const noexcept;
void UpdateKey(uint64_t aKey, uint64_t newKey) noexcept;
void Update(uint64_t aKey, uint64_t newKey, AnimationGraphDescriptor aAnimationGraphDescriptor) noexcept;
struct Builder
{
Builder(AnimationGraphDescriptorManager& aManager, uint64_t aKey, AnimationGraphDescriptor aAnimationGraphDescriptor) noexcept;
};
protected:
void Register(uint64_t aKey, AnimationGraphDescriptor aAnimationGraphDescriptor) noexcept;
private:
AnimationGraphDescriptorManager() noexcept;
TiltedPhoques::Map<uint64_t, AnimationGraphDescriptor> m_descriptors;
};