#define INTERFACE_QUANTITY				128 // NK pre-req for no restarts, boal was 34

#define INTERFACE_CANNONS				0
#define INTERFACE_STORE					1
#define INTERFACE_SHIP_CHOOSE			2
#define INTERFACE_SHIPYARD				3
#define INTERFACE_CHARACTER				4
#define INTERFACE_MAINMENU				5
#define INTERFACE_SHIPHOLD				6
#define INTERFACE_HIRECREW				7
#define INTERFACE_PASSENGERS			8
#define INTERFACE_RANSACK_JOIN			9
#define INTERFACE_RANSACK_CREW			10
#define INTERFACE_RANSACK_CAPTAIN		11
#define INTERFACE_RANSACK_MAIN			12
#define INTERFACE_TRANSFER_MAIN			13
#define INTERFACE_TRANSFER_GOODS		14
#define INTERFACE_TRANSFER_CHARACTER	15
#define INTERFACE_TRANSFER_CREW			16
#define INTERFACE_ITEMS					17
#define INTERFACE_CHARACTER_SELECT		18
#define INTERFACE_QUESTBOOK				19
#define INTERFACE_TRADEBOOK				20
#define INTERFACE_NATIONRELATION		21
#define INTERFACE_SAVELOAD				22
#define INTERFACE_FORTCAPTURE			23
#define INTERFACE_ITEMSBOX				24
#define INTERFACE_HELPSCREEN			25
#define INTERFACE_OPTIONSCREEN			26
#define INTERFACE_SELECTMENU			27
#define INTERFACE_ITEMSTRADE			28
#define INTERFACE_CONTROLS				29
#define INTERFACE_PERKS					30
#define INTERFACE_SALARY				31
#define INTERFACE_PLAYGAME				32
#define INTERFACE_ENDGAME				33
// boal -->
#define INTERFACE_BOAL_MAP				34
// boal <--
#define INTERFACE_ADV					35 //GreatZen Interface Mod
#define INTERFACE_MONEYT				36 // GreatZen Interface Mod
#define INTERFACE_KAM_SELECTMODEL		37 // added by KAM
#define INTERFACE_KAM_SELECTSAILS		38 // added by KAM
#define INTERFACE_KAM_RATIONS			39 // added by KAM
#define INTERFACE_KAM_ARTICLES			40 // added by KAM
#define INTERFACE_KAM_SHIPTRANSFER		41 // added by KAM
#define INTERFACE_KAM_SHIPBERTHING		42 // added after release of v11 by KAM
// MAXIMUS interface MOD -->
#define INTERFACE_MAP		            43
#define INTERFACE_OFFICER	            44
// MAXIMUS interface MOD <--
//->Inez
#define INTERFACE_BUILDSETTINGS			45
//<-Inez
#define INTERFACE_TRANSFER_CANNONS		46 // MAXIMUS
#define INTERFACE_CUSTOMIZATION       47 // added by MAXIMUS [coose character mod]
#define INTERFACE_ABOUT_BUILD		    48 // added by MAXIMUS
#define INTERFACE_GAMBLE		        49 // added by MAXIMUS
#define INTERFACE_MUTINY		        50 // added by MAXIMUS
#define INTERFACE_SHIPLOG		        51 // KK
#define INTERFACE_A_MAP		            52 // added by MAXIMUS
#define INTERFACE_PROFILES				53 // added by MAXIMUS
#define INTERFACE_CAPTURE_COLONY		54 // KK
#define INTERFACE_SELECT_STORYLINE		55 // KK

#define RC_INTERFACE_DO_NOTHING			-1

// main menu exit codes
#define RC_INTERFACE_MAIN_MENU_EXIT				45000
#define RC_INTERFACE_DO_NEW_GAME				45001
#define RC_INTERFACE_DO_LOAD_GAME				45002
#define RC_INTERFACE_DO_SAVE_GAME				45003
#define RC_INTERFACE_DO_OPTIONS					45004
#define RC_INTERFACE_DO_CONTROLS				45005
#define RC_INTERFACE_DO_CREDITS					45006
#define RC_INTERFACE_DO_RESUME_GAME				45007
#define RC_INTERFACE_DO_START	            45008 // KK
#define RC_INTERFACE_DO_CUSTOMIZATION			45009 // added by MAXIMUS [coose character mod]
#define RC_INTERFACE_DO_ABOUT_BUILD		        45010 // added by MAXIMUS
// common interface codes
#define RC_INTERFACE_RIGHT_CHANGE				45100
#define RC_INTERFACE_LEFT_CHANGE				45101
#define RC_INTERFACE_ERROR					    45102
// other interfaces exit codes
#define RC_INTERFACE_STORE_EXIT					45120
#define RC_INTERFACE_CANNONS_EXIT				45121
#define RC_INTERFACE_CHARACTER_EXIT				45122
#define RC_INTERFACE_HIRECREW_EXIT				45123
#define RC_INTERFACE_SHIPSTATE_EXIT				45124
#define RC_INTERFACE_SHIPSTATE_OK				45125
#define RC_INTERFACE_SHIPHOLD_EXIT				45126
#define RC_INTERFACE_SHIPYARD_EXIT				45127
#define RC_INTERFACE_PASSENGERS_EXIT			45128
#define RC_INTERFACE_RANSACK_JOIN_EXIT			45129
#define RC_INTERFACE_RANSACK_CREW_EXIT			45130
#define RC_INTERFACE_RANSACK_CAPTAIN_EXIT		45131
#define RC_INTERFACE_RANSACK_MAIN_EXIT			45132
#define RC_INTERFACE_TRANSFER_MAIN_EXIT			45133
#define RC_INTERFACE_TRANSFER_MAIN_RETURN		45134
#define RC_INTERFACE_TRANSFER_START_GOODS		45135
#define RC_INTERFACE_TRANSFER_START_CHARACTERS	45136
#define RC_INTERFACE_TRANSFER_START_CREW		45137
#define RC_INTERFACE_CHARACTER_SELECT_EXIT		45138
#define RC_INTERFACE_TRADEBOOK_EXIT				45139
#define RC_INTERFACE_QUESTBOOK_EXIT				45140
#define RC_INTERFACE_NATIONRELATION_EXIT		45141
#define RC_INTERFACE_SAVELOAD_EXIT				45142
#define RC_INTERFACE_ITEMS_EXIT					45143
#define RC_INTERFACE_FORTCAPTURE_EXIT			45144
#define RC_INTERFACE_ITEMSBOX_EXIT				45145
#define RC_INTERFACE_HELPSCREEN_EXIT			45146
#define RC_INTERFACE_OPTIONSCREEN_EXIT			45147
#define RC_INTERFACE_SELECTMENU_EXIT			45148
#define RC_INTERFACE_ITEMSTRADE_EXIT			45149
#define RC_INTERFACE_CONTROLS_EXIT				45150
#define RC_INTERFACE_PERKS_EXIT					45151
#define RC_INTERFACE_SALARY_EXIT				45152
#define RC_INTERFACE_PLAYGAME_EXIT				45153
#define RC_INTERFACE_ENDGAME_EXIT				45154
// boal Cabin 09.09.03 -->	
#define RC_INTERFACE_CABIN_MAIN_EXIT			45155
// boal Cabin 09.09.03 <--
#define RC_INTERFACE_ADV_EXIT					45156	//GreatZen Interface
#define RC_INTERFACE_MONEYT_EXIT              	45157	//GreatZen Interface
#define RC_INTERFACE_KAM_SELECTMODEL_EXIT		45158	//added by KAM
#define RC_INTERFACE_KAM_SELECTSAILS_EXIT		45159	//added by KAM
#define RC_INTERFACE_KAM_RATIONS_EXIT			45160	//added by KAM
#define RC_INTERFACE_KAM_ARTICLES_EXIT			45161	//added by KAM
#define RC_INTERFACE_KAM_SHIPTRANSFER_EXIT		45162	//added by KAM
#define RC_INTERFACE_KAM_SHIPBERTHING_EXIT		45163	// added after release of v11 by KAM
// MAXIMUS interface MOD -->
#define RC_INTERFACE_MAP_EXIT		            45164
#define RC_INTERFACE_OFFICER_EXIT		        45165
#define RC_INTERFACE_TRANSFER_CREW_EXIT		    45166
#define RC_INTERFACE_TRANSFER_START_CANNONS		45167
// MAXIMUS interface MOD <--

// MAXIMUS Deck -->
#define RC_INTERFACE_DECK_MAIN_EXIT		        45168
#define RC_INTERFACE_CREW_MAIN_EXIT		        45169
// MAXIMUS Deck <--
#define RC_INTERFACE_CUSTOMIZATION_EXIT     45171 // added by MAXIMUS [coose character mod]
#define RC_INTERFACE_ABOUT_BUILD_EXIT		    45172 // added by MAXIMUS
#define RC_INTERFACE_GAMBLE_EXIT		        45173 // added by MAXIMUS
#define RC_INTERFACE_MUTINY_EXIT		        45174 // added by MAXIMUS
#define RC_INTERFACE_SHIPLOG_EXIT		        45175 // KK
#define RC_INTERFACE_A_MAP_EXIT		            45176 // added by MAXIMUS
#define RC_INTERFACE_PROFILES_EXIT		        45177 // added by MAXIMUS
#define RC_INTERFACE_CAPTURE_COLONY_EXIT		45178 // KK
#define RC_INTERFACE_SELECT_STORYLINE_EXIT	45179 // KK

#define MAX_SAVE_STORE_BLOCKS	160

int	interfaceResultCommand;
object	GameInterface;
object	LanguageObject;
object  Interfaces[INTERFACE_QUANTITY];

// состояние интерфейса
object InterfaceStates;
// профиль игрока
object PlayerProfile;

extern void InitBaseInterfaces();
extern void InitBaseInterfaces_main();
extern void GetInterfaceParameters();
