v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
31
source/game/StarPlayerBlueprints.hpp
Normal file
31
source/game/StarPlayerBlueprints.hpp
Normal file
|
@ -0,0 +1,31 @@
|
|||
#ifndef STAR_PLAYER_BLUEPRINTS_HPP
|
||||
#define STAR_PLAYER_BLUEPRINTS_HPP
|
||||
|
||||
#include "StarByteArray.hpp"
|
||||
#include "StarSet.hpp"
|
||||
#include "StarItemDescriptor.hpp"
|
||||
|
||||
namespace Star {
|
||||
|
||||
STAR_CLASS(PlayerBlueprints);
|
||||
|
||||
class PlayerBlueprints {
|
||||
public:
|
||||
PlayerBlueprints();
|
||||
PlayerBlueprints(Json const& json);
|
||||
|
||||
Json toJson() const;
|
||||
|
||||
bool isKnown(ItemDescriptor const& itemDescriptor) const;
|
||||
bool isNew(ItemDescriptor const& itemDescriptor) const;
|
||||
void add(ItemDescriptor const& itemDescriptor);
|
||||
void markAsRead(ItemDescriptor const& itemDescriptor);
|
||||
|
||||
private:
|
||||
HashSet<ItemDescriptor> m_knownBlueprints;
|
||||
HashSet<ItemDescriptor> m_newBlueprints;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue