Source

Slayer / Client.cs

Full commit
// +-------------------------------------------+
// |  ___   _     _____   __  __  ____   ____  |
// | | __| | |   | /_\ |  \ \/ / | ___| | /\ | |
// | |__ | | |_  |  _  |   \  /  | __|  | \/ / |
// | |___| |___| |_| |_|   |__|  |____| |_| \\ |
// |  Greek2me              Blockland ID 11902 |
// +-------------------------------------------+

$Slayer::Client::Debug = 0;

// +-----------------------------+
// | DO NOT EDIT BELOW THIS LINE |
// +-----------------------------+

$Slayer::Client::Version = "3.0.1";
$Slayer::Client::CompatibleVersions = "3.0";

$Slayer::Client::ParentDir = filePath(expandFileName("./Client.cs"));
$Slayer::Client::Directory = $Slayer::Client::ParentDir @ "/Client";
$Slayer::Client::ConfigDir = "config/client/Slayer";

$Slayer::Client::FirstRun = !isFile($Slayer::Client::ConfigDir @ "/config_last.cs");

// +------+
// | Core |
// +------+
if(isObject(SlayerClient))
	SlayerClient.delete();

exec($Slayer::Client::Directory @ "/Support/Support.cs"); //support functions

exec($Slayer::Client::Directory @ "/Main.cs"); //load main scripts

// +----------+
// | KeyBinds |
// +----------+
//remove the old keybind from pre v3.0
SlayerClient_Support::removeKeyBind("Slayer","Setup","SlayerClient_pushSetup");

//add keybinds
SlayerClient_Support::addKeyBind("Slayer","Edit Minigame","SlayerClient_pushMain");
SlayerClient_Support::addKeyBind("Slayer","Options","SlayerClient_pushOptions");

// +--------------+
// | Fully Loaded |
// +--------------+
warn("Slayer Version" SPC $Slayer::Client::Version);