mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Implemented GameData::Metadata and GameData::MapMetadata
This commit is contained in:
@@ -30,96 +30,6 @@ module PhoneMsgType
|
||||
BattleRequest = 3
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Global metadata
|
||||
#===============================================================================
|
||||
module Metadata
|
||||
HOME = 1
|
||||
WILD_BATTLE_BGM = 2
|
||||
TRAINER_BATTLE_BGM = 3
|
||||
WILD_VICTORY_ME = 4
|
||||
TRAINER_VICTORY_ME = 5
|
||||
WILD_CAPTURE_ME = 6
|
||||
SURF_BGM = 7
|
||||
BICYCLE_BGM = 8
|
||||
PLAYER_A = 9
|
||||
PLAYER_B = 10
|
||||
PLAYER_C = 11
|
||||
PLAYER_D = 12
|
||||
PLAYER_E = 13
|
||||
PLAYER_F = 14
|
||||
PLAYER_G = 15
|
||||
PLAYER_H = 16
|
||||
|
||||
SCHEMA = {
|
||||
"Home" => [HOME, "uuuu"],
|
||||
"WildBattleBGM" => [WILD_BATTLE_BGM, "s"],
|
||||
"TrainerBattleBGM" => [TRAINER_BATTLE_BGM, "s"],
|
||||
"WildVictoryME" => [WILD_VICTORY_ME, "s"],
|
||||
"TrainerVictoryME" => [TRAINER_VICTORY_ME, "s"],
|
||||
"WildCaptureME" => [WILD_CAPTURE_ME, "s"],
|
||||
"SurfBGM" => [SURF_BGM, "s"],
|
||||
"BicycleBGM" => [BICYCLE_BGM, "s"],
|
||||
"PlayerA" => [PLAYER_A, "esssssss", :PBTrainers],
|
||||
"PlayerB" => [PLAYER_B, "esssssss", :PBTrainers],
|
||||
"PlayerC" => [PLAYER_C, "esssssss", :PBTrainers],
|
||||
"PlayerD" => [PLAYER_D, "esssssss", :PBTrainers],
|
||||
"PlayerE" => [PLAYER_E, "esssssss", :PBTrainers],
|
||||
"PlayerF" => [PLAYER_F, "esssssss", :PBTrainers],
|
||||
"PlayerG" => [PLAYER_G, "esssssss", :PBTrainers],
|
||||
"PlayerH" => [PLAYER_H, "esssssss", :PBTrainers]
|
||||
}
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Map-specific metadata
|
||||
#===============================================================================
|
||||
module MapMetadata
|
||||
OUTDOOR = 1
|
||||
SHOW_AREA = 2
|
||||
BICYCLE = 3
|
||||
BICYCLE_ALWAYS = 4
|
||||
HEALING_SPOT = 5
|
||||
WEATHER = 6
|
||||
MAP_POSITION = 7
|
||||
DIVE_MAP = 8
|
||||
DARK_MAP = 9
|
||||
SAFARI_MAP = 10
|
||||
SNAP_EDGES = 11
|
||||
DUNGEON = 12
|
||||
BATTLE_BACK = 13
|
||||
WILD_BATTLE_BGM = 14
|
||||
TRAINER_BATTLE_BGM = 15
|
||||
WILD_VICTORY_ME = 16
|
||||
TRAINER_VICTORY_ME = 17
|
||||
WILD_CAPTURE_ME = 18
|
||||
MAP_SIZE = 19
|
||||
ENVIRONMENT = 20
|
||||
|
||||
SCHEMA = {
|
||||
"Outdoor" => [OUTDOOR, "b"],
|
||||
"ShowArea" => [SHOW_AREA, "b"],
|
||||
"Bicycle" => [BICYCLE, "b"],
|
||||
"BicycleAlways" => [BICYCLE_ALWAYS, "b"],
|
||||
"HealingSpot" => [HEALING_SPOT, "uuu"],
|
||||
"Weather" => [WEATHER, "eu", :PBFieldWeather],
|
||||
"MapPosition" => [MAP_POSITION, "uuu"],
|
||||
"DiveMap" => [DIVE_MAP, "u"],
|
||||
"DarkMap" => [DARK_MAP, "b"],
|
||||
"SafariMap" => [SAFARI_MAP, "b"],
|
||||
"SnapEdges" => [SNAP_EDGES, "b"],
|
||||
"Dungeon" => [DUNGEON, "b"],
|
||||
"BattleBack" => [BATTLE_BACK, "s"],
|
||||
"WildBattleBGM" => [WILD_BATTLE_BGM, "s"],
|
||||
"TrainerBattleBGM" => [TRAINER_BATTLE_BGM, "s"],
|
||||
"WildVictoryME" => [WILD_VICTORY_ME, "s"],
|
||||
"TrainerVictoryME" => [TRAINER_VICTORY_ME, "s"],
|
||||
"WildCaptureME" => [WILD_CAPTURE_ME, "s"],
|
||||
"MapSize" => [MAP_SIZE, "us"],
|
||||
"Environment" => [ENVIRONMENT, "e", :PBEnvironment]
|
||||
}
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Pokémon data
|
||||
#===============================================================================
|
||||
|
||||
Reference in New Issue
Block a user