Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cScoreboardSerializer Class Reference

#include <ScoreboardSerializer.h>

Collaboration diagram for cScoreboardSerializer:
Collaboration graph
[legend]

Public Member Functions

 cScoreboardSerializer (const AString &a_WorldName, cScoreboard *a_ScoreBoard)
 
bool Load (void)
 Try to load the scoreboard. More...
 
bool Save (void)
 Try to save the scoreboard. More...
 

Private Member Functions

bool LoadScoreboardFromNBT (const cParsedNBT &a_NBT)
 
void SaveScoreboardToNBT (cFastNBTWriter &a_Writer)
 

Private Attributes

AString m_Path
 
cScoreboardm_ScoreBoard
 

Detailed Description

Definition at line 24 of file ScoreboardSerializer.h.

Constructor & Destructor Documentation

◆ cScoreboardSerializer()

cScoreboardSerializer::cScoreboardSerializer ( const AString a_WorldName,
cScoreboard a_ScoreBoard 
)

Definition at line 16 of file ScoreboardSerializer.cpp.

Member Function Documentation

◆ Load()

bool cScoreboardSerializer::Load ( void  )

Try to load the scoreboard.

Definition at line 28 of file ScoreboardSerializer.cpp.

◆ LoadScoreboardFromNBT()

bool cScoreboardSerializer::LoadScoreboardFromNBT ( const cParsedNBT a_NBT)
private

Definition at line 168 of file ScoreboardSerializer.cpp.

◆ Save()

bool cScoreboardSerializer::Save ( void  )

Try to save the scoreboard.

Definition at line 54 of file ScoreboardSerializer.cpp.

◆ SaveScoreboardToNBT()

void cScoreboardSerializer::SaveScoreboardToNBT ( cFastNBTWriter a_Writer)
private

Definition at line 74 of file ScoreboardSerializer.cpp.

Member Data Documentation

◆ m_Path

AString cScoreboardSerializer::m_Path
private

Definition at line 45 of file ScoreboardSerializer.h.

◆ m_ScoreBoard

cScoreboard* cScoreboardSerializer::m_ScoreBoard
private

Definition at line 43 of file ScoreboardSerializer.h.


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