载入中...
搜索中...
未找到
Owning, immutable projection of one authoritative simulation chunk. 更多...
#include <PixelWorld.h>
Public 属性 | |
| int | x = 0 |
| int | y = 0 |
| std::uint64_t | revision = 0 |
| bool | removed = false |
| std::vector< PixelCell > | cells |
友元 | |
| bool | operator== (const PixelChunkSnapshot &, const PixelChunkSnapshot &)=default |
| Operator ==. | |
详细描述
Owning, immutable projection of one authoritative simulation chunk.
The snapshot remains valid independently of subsequent world mutation. Cells are row-major and contain kPixelChunkSize * kPixelChunkSize entries unless removed is true, in which case cells is empty and consumers must erase projection.
在文件 PixelWorld.h 第 77 行定义.
友元及相关函数文档
◆ operator==
|
friend |
Operator ==.
类成员变量说明
◆ cells
| std::vector<PixelCell> eve::pixelworld::PixelChunkSnapshot::cells |
◆ removed
| bool eve::pixelworld::PixelChunkSnapshot::removed = false |
◆ revision
| std::uint64_t eve::pixelworld::PixelChunkSnapshot::revision = 0 |
◆ x
| int eve::pixelworld::PixelChunkSnapshot::x = 0 |
◆ y
| int eve::pixelworld::PixelChunkSnapshot::y = 0 |
该结构体的文档由以下文件生成:
- src/modules/pixelworld/PixelWorld.h