载入中...
搜索中...
未找到
TileSystem.h
浏览该文件的文档.
1#pragma once
2
3#include <vector>
4#include "map/TileLayer.h"
5
6namespace eve::graphics {
7struct DrawItem2D;
8}
9
10#include <vector>
11
12namespace eve::graphics {
13class Graphics;
14}
15
16namespace eve::map {
17
20public:
22 static void update(float dt);
24 static void collect(std::vector<graphics::DrawItem2D> &out);
26 static void collect(std::vector<graphics::DrawItem2D> &out, int viewWidth, int viewHeight);
27
29 static void render(graphics::Graphics *gfx);
30
32 static int lastVisibleTileCount();
34 static int lastCustomVisualCount();
36 static int lastAtlasCount();
38 static int lastVisitedChunkCount();
40 static int lastVisitedCellCount();
41};
42
48public:
50 static int poll();
51};
52
53} // namespace eve::map
#define EVENGINE_API_WORLD
Definition Export.h:109
Polls bound config files (Resource.path) and hot-reloads when modtime changes. Returns number of laye...
Definition TileSystem.h:47
static int poll()
Polls .
Draws all visible TileLayer entities via Graphics batch path (UV atlas quads).
Definition TileSystem.h:19
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
放置世界:格子占用(多通道)+ 地形语义 + 已放置建筑实例。 行为由 PlacementSystem 提供;本类暴露便于脚本绑定的薄封装方法。 坐标换算统一走 eve::grid(支持 rectang...