载入中...
搜索中...
未找到
PcgControllerSelection.h
浏览该文件的文档.
1#pragma once
2
3#include <string>
4#include <vector>
5#include "common/Export.h"
6#include "common/Result.h"
7namespace ssq { class Table; }
8namespace eve::ui {
struct PcgControllerTypeRow{std::string name,widgetId;int controllerType=0;bool visible=false;};
12public:
[[nodiscard]] Result<void> add(const std::string&name,int controllerType,const std::string&widgetId); [[nodiscard]] Result<bool> refresh(int currentController); int getCount()const noexcept{return int(rows_.size());} int getSelectedIndex()const noexcept{return selected_;} [[nodiscard]] Result<bool> getVisible(int index)const; [[nodiscard]] Result<std::string> getWidgetId(int index)const;
19private:std::vector<PcgControllerTypeRow>rows_;int selected_=-1;
20};
void exposePcgControllerSelectionBindings(ssq::Table& table);
22}
#define EVENGINE_API_WORLD
Definition Export.h:109
std::string name
Move-only, checked operation results for the common layer.
uint32_t index
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Caller-owned visibility selection ported from Pcg UIControllerSelection.
void exposePcgControllerSelectionBindings(ssq::Table &t)
Register Pcg controller-selection bindings.
enum EVENGINE_API_FOUNDATION Table
OT_TABLE (editable via Runtime table APIs / ReflectedPropertyModel).
Definition Runtime.h:121
EVEngine ECS 集成层:底层实现使用 sunxfancy/ECS.hpp https://github.com/sunxfancy/ECS.hpp
Definition ECS.h:14