LiveMap API
Loading...
Searching...
No Matches
livemap.data.Colormap Class Referencesealed

Public Member Functions

void Add (string block, uint[] toAdd)
bool TryGet (int id, [MaybeNullWhen(false)] out uint[] colors)
string Serialize ()
bool Deserialize (string? json)
void LoadFromPacket (IWorldAccessor world, ColormapPacket packet)
void LoadFromDisk (IWorldAccessor world, int month=-1)
async Task SaveToDisk (int month=-1)
void RefreshIds (IWorldAccessor world)
void Dispose ()

Properties

int Count [get]

Member Function Documentation

◆ Add()

void livemap.data.Colormap.Add ( string block,
uint[] toAdd )
inline

◆ Deserialize()

bool livemap.data.Colormap.Deserialize ( string? json)
inline

◆ Dispose()

void livemap.data.Colormap.Dispose ( )
inline

◆ LoadFromDisk()

void livemap.data.Colormap.LoadFromDisk ( IWorldAccessor world,
int month = -1 )
inline

◆ LoadFromPacket()

void livemap.data.Colormap.LoadFromPacket ( IWorldAccessor world,
ColormapPacket packet )
inline

◆ RefreshIds()

void livemap.data.Colormap.RefreshIds ( IWorldAccessor world)
inline

◆ SaveToDisk()

async Task livemap.data.Colormap.SaveToDisk ( int month = -1)
inline

◆ Serialize()

string livemap.data.Colormap.Serialize ( )
inline

◆ TryGet()

bool livemap.data.Colormap.TryGet ( int id,
[MaybeNullWhen(false)] out uint[] colors )
inline

Property Documentation

◆ Count

int livemap.data.Colormap.Count
get

The documentation for this class was generated from the following file: