Preparing search index...
The search index is not available
pokemon-rogue-battle
pokemon-rogue-battle
system/game-data
GameData
Class GameData
Index
Constructors
constructor
Properties
achv
Unlocks
default
Dex
Data
dex
Data
eggs
game
Stats
gender
scene
secret
Id
starter
Data
trainer
Id
unlocks
voucher
Counts
voucher
Unlocks
Methods
add
Starter
Candy
clear
Local
Data
consolidate
Dex
Data
convert
System
Data
Str
delete
Session
fix
Legendary
Stats
fix
Starter
Data
fix
Variant
Data
get
Dex
Attr
Luck
get
Form
Attr
get
Form
Index
get
Natures
For
Attr
get
Session
get
Session
Save
Data
get
Species
Count
get
Species
Default
Dex
Attr
get
Species
Default
Nature
get
Species
Default
Nature
Attr
get
Species
Dex
Attr
Props
get
Species
Starter
Value
get
Starter
Count
get
Starter
Species
Default
Ability
Index
get
System
Save
Data
get
Tutorial
Flags
import
Data
increment
Ribbon
Count
init
Dex
Data
init
Starter
Data
init
System
load
Session
load
Settings
load
System
migrate
Starter
Abilities
offline
New
Clear
parse
Session
Data
parse
System
Data
save
All
save
Setting
save
System
save
Tutorial
Flag
set
Egg
Move
Unlocked
set
Pokemon
Caught
set
Pokemon
Seen
set
Pokemon
Species
Caught
try
Clear
Session
try
Export
Data
update
Species
Dex
Ivs
verify
Constructors
constructor
new
Game
Data
(
scene
)
:
GameData
Parameters
scene
:
default
Returns
GameData
Properties
achv
Unlocks
achv
Unlocks
:
AchvUnlocks
Private
default
Dex
Data
default
Dex
Data
:
DexData
dex
Data
dex
Data
:
DexData
eggs
eggs
:
Egg
[]
game
Stats
game
Stats
:
GameStats
gender
gender
:
PlayerGender
Private
scene
scene
:
default
secret
Id
secret
Id
:
number
starter
Data
starter
Data
:
StarterData
trainer
Id
trainer
Id
:
number
unlocks
unlocks
:
Unlocks
voucher
Counts
voucher
Counts
:
VoucherCounts
voucher
Unlocks
voucher
Unlocks
:
VoucherUnlocks
Methods
add
Starter
Candy
add
Starter
Candy
(
species
,
count
)
:
void
Parameters
species
:
default
count
:
number
Returns
void
clear
Local
Data
clear
Local
Data
(
)
:
void
Returns
void
consolidate
Dex
Data
consolidate
Dex
Data
(
dexData
)
:
void
Parameters
dexData
:
DexData
Returns
void
Private
convert
System
Data
Str
convert
System
Data
Str
(
dataStr
,
shorten
?
)
:
string
Parameters
dataStr
:
string
shorten
:
boolean
= false
Returns
string
delete
Session
delete
Session
(
slotId
)
:
Promise
<
boolean
>
Parameters
slotId
:
number
Returns
Promise
<
boolean
>
fix
Legendary
Stats
fix
Legendary
Stats
(
systemData
)
:
void
Parameters
systemData
:
SystemSaveData
Returns
void
fix
Starter
Data
fix
Starter
Data
(
systemData
)
:
void
Parameters
systemData
:
SystemSaveData
Returns
void
fix
Variant
Data
fix
Variant
Data
(
systemData
)
:
void
Parameters
systemData
:
SystemSaveData
Returns
void
get
Dex
Attr
Luck
get
Dex
Attr
Luck
(
dexAttr
)
:
number
Parameters
dexAttr
:
bigint
Returns
number
get
Form
Attr
get
Form
Attr
(
formIndex
)
:
bigint
Parameters
formIndex
:
number
Returns
bigint
get
Form
Index
get
Form
Index
(
attr
)
:
number
Parameters
attr
:
bigint
Returns
number
get
Natures
For
Attr
get
Natures
For
Attr
(
natureAttr
)
:
Nature
[]
Parameters
natureAttr
:
number
Returns
Nature
[]
get
Session
get
Session
(
slotId
)
:
Promise
<
SessionSaveData
>
Parameters
slotId
:
number
Returns
Promise
<
SessionSaveData
>
Private
get
Session
Save
Data
get
Session
Save
Data
(
scene
)
:
SessionSaveData
Parameters
scene
:
default
Returns
SessionSaveData
get
Species
Count
get
Species
Count
(
dexEntryPredicate
)
:
number
Parameters
dexEntryPredicate
:
(
(
entry
)
=>
boolean
)
(
entry
)
:
boolean
Parameters
entry
:
DexEntry
Returns
boolean
Returns
number
get
Species
Default
Dex
Attr
get
Species
Default
Dex
Attr
(
species
,
forSeen
?
,
optimistic
?
)
:
bigint
Parameters
species
:
default
forSeen
:
boolean
= false
optimistic
:
boolean
= false
Returns
bigint
get
Species
Default
Nature
get
Species
Default
Nature
(
species
)
:
Nature
Parameters
species
:
default
Returns
Nature
get
Species
Default
Nature
Attr
get
Species
Default
Nature
Attr
(
species
)
:
number
Parameters
species
:
default
Returns
number
get
Species
Dex
Attr
Props
get
Species
Dex
Attr
Props
(
species
,
dexAttr
)
:
DexAttrProps
Parameters
species
:
default
dexAttr
:
bigint
Returns
DexAttrProps
get
Species
Starter
Value
get
Species
Starter
Value
(
speciesId
)
:
number
Parameters
speciesId
:
Species
Returns
number
get
Starter
Count
get
Starter
Count
(
dexEntryPredicate
)
:
number
Parameters
dexEntryPredicate
:
(
(
entry
)
=>
boolean
)
(
entry
)
:
boolean
Parameters
entry
:
DexEntry
Returns
boolean
Returns
number
get
Starter
Species
Default
Ability
Index
get
Starter
Species
Default
Ability
Index
(
species
)
:
number
Parameters
species
:
default
Returns
number
get
System
Save
Data
get
System
Save
Data
(
)
:
SystemSaveData
Returns
SystemSaveData
get
Tutorial
Flags
get
Tutorial
Flags
(
)
:
TutorialFlags
Returns
TutorialFlags
import
Data
import
Data
(
dataType
,
slotId
?
)
:
void
Parameters
dataType
:
GameDataType
slotId
:
number
= 0
Returns
void
increment
Ribbon
Count
increment
Ribbon
Count
(
species
,
forStarter
?
)
:
number
Parameters
species
:
default
forStarter
:
boolean
= false
Returns
number
Private
init
Dex
Data
init
Dex
Data
(
)
:
void
Returns
void
Private
init
Starter
Data
init
Starter
Data
(
)
:
void
Returns
void
init
System
init
System
(
systemDataStr
,
cachedSystemDataStr
?
)
:
Promise
<
boolean
>
Parameters
systemDataStr
:
string
Optional
cachedSystemDataStr
:
string
Returns
Promise
<
boolean
>
load
Session
load
Session
(
scene
,
slotId
,
sessionData
?
)
:
Promise
<
boolean
>
Parameters
scene
:
default
slotId
:
number
Optional
sessionData
:
SessionSaveData
Returns
Promise
<
boolean
>
Private
load
Settings
load
Settings
(
)
:
boolean
Returns
boolean
load
System
load
System
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
migrate
Starter
Abilities
migrate
Starter
Abilities
(
systemData
,
initialStarterData
?
)
:
void
Parameters
systemData
:
SystemSaveData
Optional
initialStarterData
:
StarterData
Returns
void
offline
New
Clear
offline
New
Clear
(
scene
)
:
Promise
<
boolean
>
Parameters
scene
:
default
Returns
Promise
<
boolean
>
parse
Session
Data
parse
Session
Data
(
dataStr
)
:
SessionSaveData
Parameters
dataStr
:
string
Returns
SessionSaveData
Private
parse
System
Data
parse
System
Data
(
dataStr
)
:
SystemSaveData
Parameters
dataStr
:
string
Returns
SystemSaveData
save
All
save
All
(
scene
,
skipVerification
?
,
sync
?
,
useCachedSession
?
,
useCachedSystem
?
)
:
Promise
<
boolean
>
Parameters
scene
:
default
skipVerification
:
boolean
= false
sync
:
boolean
= false
useCachedSession
:
boolean
= false
useCachedSystem
:
boolean
= false
Returns
Promise
<
boolean
>
save
Setting
save
Setting
(
setting
,
valueIndex
)
:
boolean
Parameters
setting
:
Setting
valueIndex
:
number
Returns
boolean
save
System
save
System
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
save
Tutorial
Flag
save
Tutorial
Flag
(
tutorial
,
flag
)
:
boolean
Parameters
tutorial
:
Tutorial
flag
:
boolean
Returns
boolean
set
Egg
Move
Unlocked
set
Egg
Move
Unlocked
(
species
,
eggMoveIndex
)
:
Promise
<
boolean
>
Parameters
species
:
default
eggMoveIndex
:
number
Returns
Promise
<
boolean
>
set
Pokemon
Caught
set
Pokemon
Caught
(
pokemon
,
incrementCount
?
,
fromEgg
?
)
:
Promise
<
void
>
Parameters
pokemon
:
default
incrementCount
:
boolean
= true
fromEgg
:
boolean
= false
Returns
Promise
<
void
>
set
Pokemon
Seen
set
Pokemon
Seen
(
pokemon
,
incrementCount
?
,
trainer
?
)
:
void
Parameters
pokemon
:
default
incrementCount
:
boolean
= true
trainer
:
boolean
= false
Returns
void
set
Pokemon
Species
Caught
set
Pokemon
Species
Caught
(
pokemon
,
species
,
incrementCount
?
,
fromEgg
?
)
:
Promise
<
void
>
Parameters
pokemon
:
default
species
:
default
incrementCount
:
boolean
= true
fromEgg
:
boolean
= false
Returns
Promise
<
void
>
try
Clear
Session
try
Clear
Session
(
scene
,
slotId
)
:
Promise
<
[
success
:
boolean
,
newClear
:
boolean
]
>
Parameters
scene
:
default
slotId
:
number
Returns
Promise
<
[
success
:
boolean
,
newClear
:
boolean
]
>
try
Export
Data
try
Export
Data
(
dataType
,
slotId
?
)
:
Promise
<
boolean
>
Parameters
dataType
:
GameDataType
slotId
:
number
= 0
Returns
Promise
<
boolean
>
update
Species
Dex
Ivs
update
Species
Dex
Ivs
(
speciesId
,
ivs
)
:
void
Parameters
speciesId
:
Species
ivs
:
number
[]
Returns
void
verify
verify
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
achv
Unlocks
default
Dex
Data
dex
Data
eggs
game
Stats
gender
scene
secret
Id
starter
Data
trainer
Id
unlocks
voucher
Counts
voucher
Unlocks
add
Starter
Candy
clear
Local
Data
consolidate
Dex
Data
convert
System
Data
Str
delete
Session
fix
Legendary
Stats
fix
Starter
Data
fix
Variant
Data
get
Dex
Attr
Luck
get
Form
Attr
get
Form
Index
get
Natures
For
Attr
get
Session
get
Session
Save
Data
get
Species
Count
get
Species
Default
Dex
Attr
get
Species
Default
Nature
get
Species
Default
Nature
Attr
get
Species
Dex
Attr
Props
get
Species
Starter
Value
get
Starter
Count
get
Starter
Species
Default
Ability
Index
get
System
Save
Data
get
Tutorial
Flags
import
Data
increment
Ribbon
Count
init
Dex
Data
init
Starter
Data
init
System
load
Session
load
Settings
load
System
migrate
Starter
Abilities
offline
New
Clear
parse
Session
Data
parse
System
Data
save
All
save
Setting
save
System
save
Tutorial
Flag
set
Egg
Move
Unlocked
set
Pokemon
Caught
set
Pokemon
Seen
set
Pokemon
Species
Caught
try
Clear
Session
try
Export
Data
update
Species
Dex
Ivs
verify
pokemon-rogue-battle
Loading...