XposeCraft  1.0.1-rc1
Developer API
XposeCraft.Game.BotRunner Class Reference

Configuration for running your Bot. More...

Static Public Member Functions

static void Log (string message)
 Logs a string message into the Unity console. More...
 

Properties

static bool Tutorial [set]
 Starts or disables the Tutorial. More...
 
static bool HotSwap [set]
 Configures the ability run the all Player's code again, right after it gets recompiled by Unity. More...
 
static bool CurrentlyAfterHotswap [get]
 If the HotSwap is turned on, this can be used to check if the current script execution happened other than the first time. More...
 
static int Speed [set]
 Modifier of the game speed in the Unity editor, value between 0 and 100. More...
 

Detailed Description

Configuration for running your Bot.

Member Function Documentation

◆ Log()

static void XposeCraft.Game.BotRunner.Log ( string  message)
static

Logs a string message into the Unity console.

All C# objects provide method ToString() that can be used to get a string format.

Parameters
messageMesage to be displayed.

Property Documentation

◆ CurrentlyAfterHotswap

bool XposeCraft.Game.BotRunner.CurrentlyAfterHotswap
staticget

If the HotSwap is turned on, this can be used to check if the current script execution happened other than the first time.

False means this is the first execution during the single Game run. It is advised to cache the value. It must be also requested during the initialization, not in Events!

◆ HotSwap

bool XposeCraft.Game.BotRunner.HotSwap
staticset

Configures the ability run the all Player's code again, right after it gets recompiled by Unity.

If the value is false, the code will only run once after the game is started.

◆ Speed

int XposeCraft.Game.BotRunner.Speed
staticset

Modifier of the game speed in the Unity editor, value between 0 and 100.

◆ Tutorial

bool XposeCraft.Game.BotRunner.Tutorial
staticset

Starts or disables the Tutorial.


The documentation for this class was generated from the following file: