|
enum | SValueType {
Null = 0,
Array = 1,
Dictionary = 2,
Boolean = 3,
Float = 4,
Integer = 5,
String = 6,
ByteArray = 7,
Vector2 = 8,
Vector3 = 9,
Vector4 = 10
} |
|
enum | cvar_type { Bool = 2,
Float = 4,
Int = 0,
String = 6
} |
|
enum | cvar_flags { ConfigOnly = 2,
Cheat = 4
} |
|
enum | UnitEventType {
Destroyed = 1,
SceneChanged = 2,
Hidden = 4,
Damaged = 8,
Custom = 16
} |
|
enum | NetSyncMode { None = 0,
Manual = 1,
Existance = 2,
Position = 3
} |
|
enum | TextAlignment { Left = 0,
Center = 1,
Right = 2
} |
|
enum | GradientDirection { Horizontal = 0,
Vertical = 1
} |
|
enum | RaycastType { Any = 0,
Aim = 1,
Shot = 2,
Jam = 3
} |
|
enum | TextInputControlEventType {
Home = 0,
End = 1,
Left = 0,
Right = 2,
LeftWord = 4,
RightWord = 5,
Backspace = 6,
Delete = 7,
Tab = 8,
Submit = 9,
Cancel = 10,
Copy = 11,
Paste = 12,
Cut = 13,
Up = 14,
Down = 15,
None = 0
} |
|
enum | ControllerType {
None = 0,
Keyboard = 1,
Mouse = 2,
MouseWheel = 3,
Gamepad = 4,
GamepadAxis = 5,
GamepadVector = 6,
Joystick = 7,
JoystickAxis = 8,
JoystickVector = 9,
JoystickHat = 10
} |
|
enum | MenuState { MainMenu = 0,
InGameMenu = 1,
Hidden = 4
} |
|
enum | MenuMessage { LostConnection = 1,
Saved = 0
} |
|
enum | GameDifficulty { Easy = 1,
Normal = 2,
Hard = 4,
Serious = 8
} |
|
enum | ScenarioModificationVisual { None = 0,
Separator = 1,
Header = 2
} |
|
enum | StartMode { StartGame = 0,
Continue = 1,
LoadGame = 2,
DropIn = 3
} |
|
|
string | formatInt (int64 val, const string &options="", uint32 width=0) |
|
string | formatUInt (uint64 val, const string &options="", uint32 width=0) |
|
string | formatFloat (double val, const string &options="", uint32 width=0, uint32 precision=0) |
|
int64 | parseInt (const string &, uint32 base=10, uint32 &byteCount=0) |
|
uint64 | parseUInt (const string &, uint32 base=10, uint32 &byteCount=0) |
|
double | parseFloat (const string &, uint32 &byteCount=0) |
|
string | join (const array< string > &, const string &) |
|
void | PROFILE_START (const string &) |
|
void | PROFILE_STOP () |
|
mat3 | mat::shearY (const mat3 &, const float x) |
|
mat3 | mat::shearX (const mat3 &, const float y) |
|
mat3 | mat::scale (const mat3 &, const vec2 &) |
|
mat3 | mat::translate (const mat3 &, const vec2 &) |
|
mat3 | mat::inverse (const mat3 &) |
|
mat4 | mat::scale (const mat4 &, const vec3 &) |
|
mat4 | mat::translate (const mat4 &, const vec3 &) |
|
mat4 | mat::inverse (const mat4 &) |
|
ctime | gmtime (uint64 time) |
|
float | atan (float y, float x) |
|
float | sin (float a) |
|
float | cos (float a) |
|
float | sqrt (float a) |
|
uint32 | sqrt (uint32 a) |
|
int32 | sqrt (int32 a) |
|
float | pow (float a, float e) |
|
float | round (float a) |
|
float | round (float a, int32 n) |
|
float | floor (float a) |
|
float | ceil (float a) |
|
vec2 | normalize (const vec2 &) |
|
vec3 | normalize (const vec3 &) |
|
vec4 | normalize (const vec4 &) |
|
float | dot (const vec2 &, const vec2 &) |
|
float | dot (const vec3 &, const vec3 &) |
|
float | dot (const vec4 &, const vec4 &) |
|
float | length (const vec2 &) |
|
float | length (const vec3 &) |
|
float | length (const vec4 &) |
|
float | lengthsq (const vec2 &) |
|
float | lengthsq (const vec3 &) |
|
float | lengthsq (const vec4 &) |
|
float | dist (const vec2 &, const vec2 &) |
|
float | dist (const vec3 &, const vec3 &) |
|
float | dist (const vec4 &, const vec4 &) |
|
float | distsq (const vec2 &, const vec2 &) |
|
float | distsq (const vec3 &, const vec3 &) |
|
float | distsq (const vec4 &, const vec4 &) |
|
float | randf () |
|
int32 | randi (int32 max) |
|
vec2 | randdir () |
|
vec4 | tocolor (const vec4 &srgb) |
| Convert a color from srgb to linear. More...
|
|
vec4 | ParseColorRGBA (const string &s) |
|
void | DumpStack () |
| Dump the current scripting call stack to the console. More...
|
|
string | EscapeString (const string &s) |
| Adds slashes for characters that have to be escaped in translatable strings. More...
|
|
int32 | GetParamInt (UnitPtr owner, SValue *params, string &name, bool required=true, int32 def=0) |
|
float | GetParamFloat (UnitPtr owner, SValue *params, string &name, bool required=true, float def=0.) |
|
bool | GetParamBool (UnitPtr owner, SValue *params, string &name, bool required=true, bool def=false) |
|
vec2 | GetParamVec2 (UnitPtr owner, SValue *params, string &name, bool required=true, vec2 def=vec2()) |
|
vec3 | GetParamVec3 (UnitPtr owner, SValue *params, string &name, bool required=true, vec3 def=vec3()) |
|
vec4 | GetParamVec4 (UnitPtr owner, SValue *params, string &name, bool required=true, vec4 def=vec4()) |
|
string | GetParamString (UnitPtr owner, SValue *params, string &name, bool required=true, string &def="") |
|
array< SValue * > * | GetParamArray (UnitPtr owner, SValue *params, string &name, bool required=true) |
|
SValue * | GetParamDictionary (UnitPtr owner, SValue *params, string &name, bool required=true) |
|
bool | VarExists (string name) |
|
void | AddVar (string name, int32 def, OnChangedInt *onChanged=null, uint32 flags=0) |
|
void | AddVar (string name, float def, OnChangedFloat *onChanged=null, uint32 flags=0) |
|
void | AddVar (string name, bool def, OnChangedBool *onChanged=null, uint32 flags=0) |
|
void | AddVar (string name, string def, OnChangedString *onChanged=null, uint32 flags=0) |
|
cvar_type | GetVarType (string name) |
|
int32 | GetVarInt (string name) |
|
float | GetVarFloat (string name) |
|
bool | GetVarBool (string name) |
|
string | GetVarString (string name) |
|
ivec2 | GetVarIvec2 (string name) |
|
int32 | GetVarIntDefault (string name) |
|
float | GetVarFloatDefault (string name) |
|
bool | GetVarBoolDefault (string name) |
|
string | GetVarStringDefault (string name) |
|
ivec2 | GetVarIvec2Default (string name) |
|
void | AddFunction (string name, OnCFunctionCall0Param *onCalled, uint32 flags=0) |
|
void | AddFunction (string name, array< cvar_type > *params, OnCFunctionCall1Param *onCalled, uint32 flags=0) |
|
void | AddFunction (string name, array< cvar_type > *params, OnCFunctionCall2Param *onCalled, uint32 flags=0) |
|
void | AddFunction (string name, array< cvar_type > *params, OnCFunctionCall3Param *onCalled, uint32 flags=0) |
|
void | AddFunction (string name, array< cvar_type > *params, OnCFunctionCall4Param *onCalled, uint32 flags=0) |
|
void | AddFunction (string name, array< cvar_type > *params, OnCFunctionCall5Param *onCalled, uint32 flags=0) |
|
void | AddFunction (string name, array< cvar_type > *params, OnCFunctionCall6Param *onCalled, uint32 flags=0) |
|
void | AddFunction (string name, array< cvar_type > *params, OnCFunctionCall7Param *onCalled, uint32 flags=0) |
|
void | AddFunction (string name, array< cvar_type > *params, OnCFunctionCall8Param *onCalled, uint32 flags=0) |
|
void | AddFunction (string name, array< cvar_type > *params, OnCFunctionCall9Param *onCalled, uint32 flags=0) |
|
void | AddFunction (string name, array< cvar_type > *params, OnCFunctionCall10Param *onCalled, uint32 flags=0) |
|
ivec2 | ParseVarIvec2 (string str) |
|
void | SetVar (string name, const int32 &val) |
|
void | SetVar (string name, const float &val) |
|
void | SetVar (string name, const bool &val) |
|
void | SetVar (string name, const string &val) |
|
void | SetVar (string name, const ivec2 &val) |
|
void | Config::SaveControls (int32 playerNum, string newControls) |
|
void | Config::SaveVar (string cvar, string value) |
|
void | Config::SaveVar (string cvar) |
|
void | Sound::SetListener (vec3 pos, vec3 look, vec3 up) |
|
WorldScript * | WorldScript::GetWorldScript (UnitPtr unit) |
|
WorldScript * | WorldScript::GetWorldScript (Scene &scene, ref script) |
|
NetworkMessage | Network::Message (const string &) |
|
bool | Network::IsServer () |
|
UnitProducer * | Resources::GetUnitProducer (string filename) |
|
SValue * | Resources::GetSValue (string filename) |
|
BitmapFont * | Resources::GetBitmapFont (string filename) |
|
SoundEvent * | Resources::GetSoundEvent (string filename) |
|
UnitScene * | Resources::GetEffect (string filename) |
|
GUIDef * | Resources::GetGUIDef (string filename) |
|
Texture2D * | Resources::GetTexture2D (string filename) |
|
Bitmap2D * | Resources::GetBitmap2D (string filename) |
|
Tileset * | Resources::GetTileset (string filename) |
|
UnitProducer * | Resources::GetUnitProducer (uint32 filenameHash) |
|
SValue * | Resources::GetSValue (uint32 filenameHash) |
|
BitmapFont * | Resources::GetBitmapFont (uint32 filenameHash) |
|
UnitScene * | Resources::GetEffect (uint32 filenameHash) |
|
GUIDef * | Resources::GetGUIDef (uint32 filenameHash) |
|
Texture2D * | Resources::GetTexture2D (uint32 filenameHash) |
|
Bitmap2D * | Resources::GetBitmap2D (uint32 filenameHash) |
|
Tileset * | Resources::GetTileset (uint32 filenameHash) |
|
string | Resources::GetResourceName (uint32 filenameHash) |
|
uint32 | Resources::GetSlot (string name) |
|
string | Resources::GetString (string str) |
|
string | Resources::GetString (string str, const dictionary ¶ms) |
|
void | PrintError (string message) |
| Print an error message to the console. More...
|
|
ref | InstantiateClass (string name, SValue &val) |
|
ref | InstantiateClass (string name, UnitPtr unit, SValue &val) |
|
uint32 | HashString (string str) |
|
void | print (const string &) |
|
ControlBindings * | GetControlBindings () |
|
vec2 | ToScreenspace (vec3 pos) |
|
vec3 | ToWorldspace (vec2 pos) |
|
uint64 | CurrPlaytimeLevel () |
|
uint64 | CurrPlaytimeTotal () |
|
string | Lobby::GetPlayerName (uint8 peer) |
|
string | Lobby::GetPlayerSkin (uint8 peer) |
|
int32 | Lobby::GetPlayerPing (uint8 peer) |
|
int32 | Lobby::GetHostPing (uint8 peer) |
|
bool | Lobby::IsInLobby () |
|
void | StartGame (int32 numPlrs, string level, ScenarioInfo *scenario, GameDifficulty diff, array< string > *mods) |
|
void | ChangeLevel (string level) |
|
void | RestartLevel () |
|
void | SaveGame () |
|
string | GetCurrentLevelFilename () |
|
int32 | GetRestartCount () |
|
void | SetRestartCount (int32 count) |
|
void | Lobby::CreateLobby () |
|
void | Lobby::JoinLobby (uint64 id) |
|
void | Lobby::LeaveLobby () |
|
void | Lobby::SendChatMessage (string msg) |
|
bool | Lobby::IsPlayerHost (uint8 peer) |
|
bool | Lobby::IsPlayerLocal (uint8 peer) |
|
int32 | Lobby::GetLocalPeer () |
|
void | Lobby::SetPrivate (bool priv) |
|
void | Lobby::KickPlayer (uint8 peer) |
|
void | Lobby::SetScenario (ScenarioInfo *scenario, GameDifficulty diff, array< string > *mods) |
|
void | Lobby::SetLevel (string level) |
|
void | Lobby::StartGame () |
|
void | Lobby::SetLobbyData (const string &key, const string &value) |
|
string | Lobby::GetLobbyData (const string &) |
|
void | Lobby::SetLobbyMemberData (const string &key, const string &value) |
|
string | Lobby::GetLobbyMemberData (uint8 peer, const string &key) |
|
ScenarioInfo * | Lobby::GetScenario () |
|
GameDifficulty | Lobby::GetDifficulty () |
|
array< string > * | Lobby::GetModifiers () |
|
void | Lobby::ListLobbies () |
|
string | Lobby::GetLobbyData (uint64 id, const string &key) |
|
int32 | Lobby::GetLobbyPing (uint64 id) |
|
int32 | Lobby::GetLobbyPlayerCount (uint64 id) |
|
int32 | Lobby::GetLobbyPlayerCountMax (uint64 id) |
|
array< string > * | Saves::GetSaves () |
|
GameSaveInfo | Saves::ReadInfo (string filename) |
|
bool | Saves::Load (string filename) |
|
void | Saves::Rename (string filename, string newname) |
|
void | Saves::Delete (string filename) |
|
void | QuitGame () |
|
void | StopScenario () |
|
void | ResumeGame () |
|
void | PauseGame (bool pause, bool localOnly) |
|
uint64 | GetUniquePeerId (uint8 peer) |
|
void | RumbleGamepad (float strength, int32 length) |
|
void | RumbleGamepadStop () |
|
void | Platform::HideCursor () |
|
void | Platform::ShowCursor () |
|
vec2 | Platform::GetMousePosition () |
|
array< ivec2 > * | Platform::GetResolutions () |
|
array< ScenarioInfo * > * | Platform::GetAllScenarios () |
|
ScenarioInfo * | Platform::GetScenario (string id) |
|
ScenarioInfo * | Platform::GetScenario (uint32 id) |
|
array< uint32 > * | Platform::GetCampaignLevelsPlayed () |
|