载入中...
搜索中...
未找到
eve::pixelworld::PixelChunkSnapshot结构体 参考

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==

bool operator== ( const PixelChunkSnapshot &  ,
const PixelChunkSnapshot &   
)
friend

Operator ==.

类成员变量说明

◆ cells

std::vector<PixelCell> eve::pixelworld::PixelChunkSnapshot::cells

在文件 PixelWorld.h 第 82 行定义.

被这些函数引用 eve::pixelworld_streaming::decodeChunkBatchArchive().

◆ removed

bool eve::pixelworld::PixelChunkSnapshot::removed = false

在文件 PixelWorld.h 第 81 行定义.

被这些函数引用 eve::pixelworld_streaming::decodeChunkBatchArchive().

◆ revision

std::uint64_t eve::pixelworld::PixelChunkSnapshot::revision = 0

在文件 PixelWorld.h 第 80 行定义.

被这些函数引用 eve::pixelworld_streaming::decodeChunkBatchArchive().

◆ x

int eve::pixelworld::PixelChunkSnapshot::x = 0

在文件 PixelWorld.h 第 78 行定义.

被这些函数引用 eve::pixelworld_streaming::decodeChunkBatchArchive().

◆ y

int eve::pixelworld::PixelChunkSnapshot::y = 0

在文件 PixelWorld.h 第 79 行定义.

被这些函数引用 eve::pixelworld_streaming::decodeChunkBatchArchive().


该结构体的文档由以下文件生成: