resonance 1.0.1
Loading...
Searching...
No Matches
levelstats.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4#include <vector>
5
6#include "game/skillstats.h"
7#include "os/hxstr.h"
8#include "stream/ibstream.h"
9#include "stream/obstream.h"
10
25public:
37
42 virtual ~LevelStats();
43
55 virtual void Save(OBStream &stream);
56
70 virtual void Load(IBStream &stream);
71
81 void Reset();
82
94 void Assign(const LevelStats &other);
95
106 void Print(std::ostream &stream) const;
107
117
128
135 std::vector<SkillStats> mSkills;
136};
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Input half of the byte stream interface.
Definition ibstream.h:36
void Assign(const LevelStats &other)
Copy another record's name, stage, and skills into this one.
virtual void Load(IBStream &stream)
Read this record.
virtual void Save(OBStream &stream)
Write this record.
LevelStats()
Construct an empty record.
HxStr mName
Identity of the level this record belongs to.
Definition levelstats.h:116
void Reset()
Empty the name, clear mStage, and replace the skills with three cleared records.
std::vector< SkillStats > mSkills
One result per difficulty, exactly three once a record has been read.
Definition levelstats.h:135
virtual ~LevelStats()
void Print(std::ostream &stream) const
Write this record to a text stream.
int mStage
The album stage the level belongs to, counted from 1.
Definition levelstats.h:127
Output half of the byte stream interface.
Definition obstream.h:25