Moving link connection to Pokemon_Party class

This commit is contained in:
Starport75
2023-08-04 14:52:04 -05:00
parent c0e6003d7a
commit 880f2cce58
11 changed files with 328 additions and 202 deletions

View File

@@ -1,16 +1,28 @@
#include "script_array.h"
#include "script_obj.h"
#include "pokemon_party.h"
#include <tonc.h>
script_obj script[6] =
script_obj script[11] =
{
script_obj("", 2, 1, 1), // 0
script_obj("", 2, CHECK_GAME, 1), // 0
script_obj("Game not detected. Please turn off your system and upload the program again.", 2), // 1
script_obj("Welcome to Pokemon Mirror!", 3), // 2
script_obj("Please connect your GBA to a GB in the trading room, and press A", 4, 2, 5), // 3
script_obj("Connection successful! Transfering in Pokemon now", 6), // 4
script_obj("Connection not found, please try again.", 3), // 5
script_obj("Please connect your GBA to a GB in the trading room, and press A", 4, START_LINK), // 3
script_obj("", 6, ERROR_COM_ENDED, 5), // 4
script_obj("Error: Communication ended.", 3), // 5
script_obj("", 8, ERROR_DISCONNECT, 7), // 6
script_obj("Error: Cable disconnected.", 3), // 7
script_obj("", 10, ERROR_TIMEOUT, 9), // 8
script_obj("Error: Timed out.", 3), // 9
script_obj("Connection successful! Transfering in Pokemon now", 5), // 10
};
void add_script_party_var(Pokemon_Party *var){
for (int i = 0; i < 11; i++){
script[i].link_party_var(var);
}
}