Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
Toggle main menu visibility
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
>
19
#include "
../../savefile_autoport.h
"
20
21
class
SaveFile
;
22
33
class
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
44
public
:
45
WorldLocal
(
SaveFile
* saveFile =
nullptr
);
46
virtual
~WorldLocal
();
47
48
void
load
(
SaveFile
* saveFile =
nullptr
);
49
void
save
(
SaveFile
* saveFile);
50
51
signals:
52
void
lock1Changed
();
53
void
lock2Changed
();
54
void
quizOppChanged
();
55
void
safariGameOverChanged
();
56
void
safariBallCountChanged
();
57
void
safariStepsChanged
();
58
59
public
slots:
60
void
reset
();
61
void
randomize
();
62
63
public
:
64
// Lt. Surge Trash Can Locks
65
int
lock1
;
66
int
lock2
;
67
68
// Cinnabar Gym Next Opp
69
int
quizOpp
;
70
71
// Safari
72
bool
safariGameOver
;
73
int
safariBallCount
;
74
int
safariSteps
;
75
};
SaveFile
One loaded save: the raw 32 KB bytes, their expanded object tree, and the tools that move between the...
Definition
savefile.h:46
WorldLocal::safariGameOver
bool safariGameOver
Definition
worldlocal.h:72
WorldLocal::randomize
void randomize()
Randomize these values.
Definition
worldlocal.cpp:97
WorldLocal::safariGameOverChanged
void safariGameOverChanged()
WorldLocal::safariStepsChanged
void safariStepsChanged()
WorldLocal::load
void load(SaveFile *saveFile=nullptr)
Expand these values from the save.
Definition
worldlocal.cpp:35
WorldLocal::quizOppChanged
void quizOppChanged()
WorldLocal::lock2
int lock2
Definition
worldlocal.h:66
WorldLocal::safariBallCount
int safariBallCount
Definition
worldlocal.h:73
WorldLocal::lock2Changed
void lock2Changed()
WorldLocal::lock1
int lock1
Definition
worldlocal.h:65
WorldLocal::save
void save(SaveFile *saveFile)
Flatten these values to the save.
Definition
worldlocal.cpp:63
WorldLocal::safariBallCountChanged
void safariBallCountChanged()
WorldLocal::lock1Changed
protected::void lock1Changed()
WorldLocal::safariSteps
int safariSteps
Definition
worldlocal.h:74
WorldLocal::quizOpp
int quizOpp
Definition
worldlocal.h:69
WorldLocal::reset
void reset()
Blank these values.
Definition
worldlocal.cpp:75
WorldLocal::WorldLocal
WorldLocal(SaveFile *saveFile=nullptr)
< Lt.
Definition
worldlocal.cpp:28
types.h
Project-wide fixed-width integer aliases (var8, var16, ...).
savefile_autoport.h
Import/export macro for the savefile library, plus the central list of QObject types kept deliberatel...
SAVEFILE_AUTOPORT
#define SAVEFILE_AUTOPORT
Expands to the correct dllexport/dllimport decoration for this library.
Definition
savefile_autoport.h:38
projects
savefile
src
pse-savefile
expanded
world
worldlocal.h
Generated by
1.17.0