AlpacaLibary  1.63
A closed source C++ bot for OSRS
Script.hpp File Reference
#include <string>
#include <vector>
#include <atomic>
#include "Types/Timer.hpp"

Go to the source code of this file.

Classes

struct  ScriptInfo
 
struct  PlayerProfile
 

Functions

void Setup ()
 
bool OnStart ()
 
bool Loop ()
 
void OnEnd ()
 
bool OnBreak ()
 
std::string GetScriptPath ()
 
void TerminateScript ()
 
Timer GetScriptTimer ()
 
void SetScriptInfo (const ScriptInfo &)
 
void GetScriptInfo (ScriptInfo &)
 
void SetPlayerProfile (const PlayerProfile &)
 
void RequestArgument (const std::string &Argument, const std::string &Description)
 
std::string GetArgumentsName ()
 
void LoadArguments (const std::string &FileName)
 
void SaveArguments (const std::string &FileName)
 
std::string GetArgument (const std::string &Argument)
 
void SetArgument (const std::string &Argument, const std::string &Value)
 
std::vector< std::string > GetArguments ()
 
std::vector< std::string > GetArgumentDescriptions ()
 
std::uint32_t GetLoopDelay ()
 
void SetLoopDelay (std::uint32_t Delay)
 

Variables

std::atomic_bool Terminate
 

Function Documentation

◆ GetArgument()

std::string GetArgument ( const std::string &  Argument)

◆ GetArgumentDescriptions()

std::vector<std::string> GetArgumentDescriptions ( )

◆ GetArguments()

std::vector<std::string> GetArguments ( )

◆ GetArgumentsName()

std::string GetArgumentsName ( )

◆ GetLoopDelay()

std::uint32_t GetLoopDelay ( )

◆ GetScriptInfo()

void GetScriptInfo ( ScriptInfo )

◆ GetScriptPath()

std::string GetScriptPath ( )

◆ GetScriptTimer()

Timer GetScriptTimer ( )

◆ LoadArguments()

void LoadArguments ( const std::string &  FileName)

◆ Loop()

bool Loop ( )

◆ OnBreak()

bool OnBreak ( )

◆ OnEnd()

void OnEnd ( )

◆ OnStart()

bool OnStart ( )

◆ RequestArgument()

void RequestArgument ( const std::string &  Argument,
const std::string &  Description 
)

◆ SaveArguments()

void SaveArguments ( const std::string &  FileName)

◆ SetArgument()

void SetArgument ( const std::string &  Argument,
const std::string &  Value 
)

◆ SetLoopDelay()

void SetLoopDelay ( std::uint32_t  Delay)

◆ SetPlayerProfile()

void SetPlayerProfile ( const PlayerProfile )

◆ SetScriptInfo()

void SetScriptInfo ( const ScriptInfo )

◆ Setup()

void Setup ( )

◆ TerminateScript()

void TerminateScript ( )

Variable Documentation

◆ Terminate

std::atomic_bool Terminate
extern