#include "data_classlevels"
#include "data_classlevels_data"
//#include "data_global"
//#include "data_savestate"
//#include "data_loadstate"
#include "env_model_coop"
#include "env_render_progressive"
#include "env_warpball"
#include "extra_languages"
#include "game_spritetext"
#include "game_spritetext_button"
#include "game_text_custom"
#include "info_player_spawnarea"
#include "monster_slime"
#include "multi_target"
#include "proj_toarrow"
#include "trigger_move"
#include "trigger_player_class"
#include "utils"
#include "weapon_tosword"
#include "weapon_tomedkit"
#include "weapon_tobow"
#include "weapon_tocolt"
#include "weapon_tosawed"
//#include "justanothernormalscript"

void LoadSettings() 
{
	// Language setting. Change to LANGUAGE_ENGLISH For english language.
	
	iLanguage = LANGUAGE_SPANISH;
	
	////////////////////////////////////////////
	
	// data_savestate settings
	
	SaveAllowed =			true;
	SaveVoteAlowed = 		true;	// "false" value allows to directly save at the slot chosen|| "true" value calls a vote to chose if you all want to save in that slot or not.
	SaveVotePercentage =	90; 	// chose a value between 0 and 100 as percentage to pass the vote.
	SaveVoteTime =			5;
	// data_loadstate settings
	
	LoadAllowed =			true;
	LoadVoteAlowed =		true; 	// "false" value allows to directly load the map from the slot chosen|| "true"  calls a vote to chose if you all want to load map from that slot or not.
	LoadVotePercentage =	90; 	// chose a value between 0 and 100 as percentage to pass the vote.
	LoadVoteTime =			5;
}

void MapInit()
{
	EnvRenderProgressive::Register();
	GameTextCustom::Register();
	InfoPlayerSpawnarea::Register();
	RegisterTriggerPlayerClass();
	Register_tosword();
	Register_medkit();
	Registertobow();
	RegisterToArrow();
	Registertosawed();
	RegisterArrowProjectile();
	TriggerMove::Register();
	MultiTarget::Register();
	Registertocolt();
	GameSpritetext::Register();
	MonsterSlime::Registermonster_slime();
	g_Hooks.RegisterHook( Hooks::Player::PlayerSpawn, @PlayerSpawn);
	RegisterGameSpriteTextButton();
	RegisterEnvModelCoop();
	RegisterClassLevels();
	RegisterEnvWarpball();
	//RegisterDataGlobalSavestate();
	//RegisterDataGlobalLoadstate();
			
	LoadSettings();
}

