载入中...
搜索中...
未找到
Avatar.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
6#include "common/Module.h"
7
8#include <string>
9#include <vector>
10
11namespace eve::graphics {
12class Graphics;
13}
14
15namespace eve::avatar {
16
26public:
29 Avatar() = default;
31 ~Avatar() override;
32
34 AvatarInstance *newImageAvatar();
36 AvatarInstance *newLive2DAvatar();
38 AvatarInstance *newVroidAvatar();
39
41 void update(float dt);
43 void sync();
48 void render(graphics::Graphics *gfx);
50 int getAvatarCount() const;
51
56 static void registerLive2DBackend(Live2DBackendFactory factory);
58 static Live2DBackendFactory live2DBackendFactory();
60 static ILive2DBackend *createLive2DBackend();
62 static std::string getLive2DBackendName();
64 static bool hasLive2DBackend();
65
66private:
67 friend class AvatarInstance;
68 void registerInstance(AvatarInstance *a);
69 void unregisterInstance(AvatarInstance *a);
70
71 std::vector<AvatarInstance *> avatars_;
72 static Live2DBackendFactory live2dFactory_;
73};
74
75} // namespace eve::avatar
#define EVENGINE_API_DOMAINS
Definition Export.h:110
MeleePoint3 a
Definition MeleeHit.cpp:40
EVENGINE_API_FOUNDATION public API.
Definition Module.h:46
Unified avatar instance. Kind is a string: "image" | "live2d" | "vroid". Script-facing API avoids ove...
Avatar module — layered character rendering for VN / portrait use. Script: avatar <- eve....
Definition Avatar.h:25
Avatar()=default
Avatar.
Optional Live2D runtime backend (Cubism etc.). Registered from C++ / plugins.
ILive2DBackend *(*)() Live2DBackendFactory
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25