37class UrRecords:
public ToyMaker::SimObjectAspect<UrRecords> {
39 UrRecords(): SimObjectAspect<UrRecords>{0} {}
40 inline static std::string getSimObjectAspectTypeName() {
return "UrRecords"; }
41 static std::shared_ptr<BaseSimObjectAspect> create(
const nlohmann::json& jsonAspectProperties);
42 std::shared_ptr<BaseSimObjectAspect> clone()
const override;
44 void submitRecord(
const GameRecord& gameRecord);
46 inline GameRecord getLatestRecord()
const {
return mLoadedRecords.back(); }
47 inline std::vector<GameRecord> getAllRecords()
const {
return mLoadedRecords; }
50 static void ApplyInvariants(
const GameRecord& gameRecord);
51 void onActivated()
override;
52 void onDeactivated()
override;
54 std::vector<GameRecord> mLoadedRecords {};
55 std::string mRecordsPath {};