Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
Loading...
Searching...
No Matches
worldlocal.h
Go to the documentation of this file.
1/*
2 * Copyright 2020 Twilight
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15*/
16#pragma once
17#include <QObject>
18#include <pse-common/types.h>
20
21class SaveFile;
22
33class SAVEFILE_AUTOPORT WorldLocal : public QObject
34{
35 Q_OBJECT
36
37 Q_PROPERTY(int lock1 MEMBER lock1 NOTIFY lock1Changed)
38 Q_PROPERTY(int lock2 MEMBER lock2 NOTIFY lock2Changed)
39 Q_PROPERTY(int quizOpp MEMBER quizOpp NOTIFY quizOppChanged)
40 Q_PROPERTY(bool safariGameOver MEMBER safariGameOver NOTIFY safariGameOverChanged)
41 Q_PROPERTY(int safariBallCount MEMBER safariBallCount NOTIFY safariBallCountChanged)
42 Q_PROPERTY(int safariSteps MEMBER safariSteps NOTIFY safariStepsChanged)
43
44public:
45 WorldLocal(SaveFile* saveFile = nullptr);
46 virtual ~WorldLocal();
47
48 void load(SaveFile* saveFile = nullptr);
49 void save(SaveFile* saveFile);
50
51signals:
58
59public slots:
60 void reset();
61 void randomize();
62
63public:
64 // Lt. Surge Trash Can Locks
65 int lock1;
66 int lock2;
67
68 // Cinnabar Gym Next Opp
69 int quizOpp;
70
71 // Safari
75};
One loaded save: the raw 32 KB bytes, their expanded object tree, and the tools that move between the...
Definition savefile.h:46
bool safariGameOver
Definition worldlocal.h:72
void randomize()
Randomize these values.
void safariGameOverChanged()
void safariStepsChanged()
void load(SaveFile *saveFile=nullptr)
Expand these values from the save.
void quizOppChanged()
int safariBallCount
Definition worldlocal.h:73
void lock2Changed()
void save(SaveFile *saveFile)
Flatten these values to the save.
void safariBallCountChanged()
protected::void lock1Changed()
int safariSteps
Definition worldlocal.h:74
void reset()
Blank these values.
WorldLocal(SaveFile *saveFile=nullptr)
< Lt.
Project-wide fixed-width integer aliases (var8, var16, ...).
Import/export macro for the savefile library, plus the central list of QObject types kept deliberatel...
#define SAVEFILE_AUTOPORT
Expands to the correct dllexport/dllimport decoration for this library.