载入中...
搜索中...
未找到
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

◆ removed

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

◆ revision

◆ x

◆ y


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