载入中...
搜索中...
未找到
AnimClipRegistry.h
浏览该文件的文档.
1#pragma once
2
3#include <string>
4#include <vector>
5
6namespace eve::animation {
7
8class AnimClip;
9
24public:
26 static void registerPath(const std::string& path, AnimClip* clip);
28 static void unregister(AnimClip* clip);
30 static std::vector<AnimClip*> findByPath(const std::string& path);
32 static bool hasPath(const std::string& path);
38 static int reloadPath(const std::string& path);
40 static int count();
42 static void clear();
44 static std::string normalizePath(const std::string& path);
45};
46
47} // namespace eve::animation
Weak path→clip registry for animation hot reload.
static std::string normalizePath(const std::string &path)
Normalize a path to the registry key form.
static void unregister(AnimClip *clip)
Forget a clip everywhere (called from ~AnimClip).
static void registerPath(const std::string &path, AnimClip *clip)
Track a clip under a source path (keys are normalized).
static int reloadPath(const std::string &path)
Re-import the source and adopt into every registered clip.
static int count()
Total registered clips (tests).
static bool hasPath(const std::string &path)
Whether any clip is registered under this path.
static void clear()
Drop all entries (tests).
static std::vector< AnimClip * > findByPath(const std::string &path)
Clips registered under a path; may be empty.
Keyframed skeletal animation clip (local TRS tracks per bone). Script type: AnimClip.
Definition AnimClip.h:17