|
|
Line 1: |
Line 1: |
− | This is an alphabetical list of all the external code that is available to be used inside a character script - functions, variables, and classes that seem to "magically" exist. | + | This is an alphabetical list of the external code that is only available to be used inside a character script - functions, variables, and classes that "magically" exist. To see a list of external code that is available to all scripts, please see this page - '''TODO''': Page link here. |
| | | |
| This is pulled from the ~/Documents/Wolfire/Overgrowth/aschar_docs.h file, which is automatically generated by the game. | | This is pulled from the ~/Documents/Wolfire/Overgrowth/aschar_docs.h file, which is automatically generated by the game. |
Line 5: |
Line 5: |
| See this page to find the location for the Wolfire/Overgrowth folder on each OS - http://wiki.wolfire.com/index.php/How_to_clear_the_game's_cache | | See this page to find the location for the Wolfire/Overgrowth folder on each OS - http://wiki.wolfire.com/index.php/How_to_clear_the_game's_cache |
| | | |
− | '''TODO''': These functions can be documented individually, and can be presented in a grouped list as well | + | '''TODO''': These can be documented individually, possibly on their own pages |
− | | |
− | '''TODO''': De-dupe this with level scripts, hotspot scripts. Move "generic" functions to a shared script functions page
| |
| | | |
| == Global Variables == | | == Global Variables == |
| | | |
− | <pre style="white-space: pre-wrap;">Camera camera;</pre>
| |
− | <pre style="white-space: pre-wrap;">CharacterScriptGetter character_getter;</pre>
| |
| <pre style="white-space: pre-wrap;">ASCollisions col; // Used to access collision functions</pre> | | <pre style="white-space: pre-wrap;">ASCollisions col; // Used to access collision functions</pre> |
− | <pre style="white-space: pre-wrap;">ASContext context;</pre>
| |
− | <pre style="white-space: pre-wrap;">float last_controller_event_time; // The time the last game controller input event occurred</pre>
| |
− | <pre style="white-space: pre-wrap;">float last_keyboard_event_time; // The time the last keyboard input event occurred</pre>
| |
− | <pre style="white-space: pre-wrap;">float last_mouse_event_time; // The time the last mouse input event occurred</pre>
| |
− | <pre style="white-space: pre-wrap;">Level level;</pre>
| |
| <pre style="white-space: pre-wrap;">ScriptParams params;</pre> | | <pre style="white-space: pre-wrap;">ScriptParams params;</pre> |
− | <pre style="white-space: pre-wrap;">Physics physics;</pre>
| |
| <pre style="white-space: pre-wrap;">ReactionScriptGetter reaction_getter;</pre> | | <pre style="white-space: pre-wrap;">ReactionScriptGetter reaction_getter;</pre> |
| <pre style="white-space: pre-wrap;">SphereCollision sphere_col; // Stores results of collision functions</pre> | | <pre style="white-space: pre-wrap;">SphereCollision sphere_col; // Stores results of collision functions</pre> |
− | <pre style="white-space: pre-wrap;">float the_time; // The current time in seconds since engine started (in-game time)</pre>
| |
| <pre style="white-space: pre-wrap;">MovementObject this_mo;</pre> | | <pre style="white-space: pre-wrap;">MovementObject this_mo;</pre> |
− | <pre style="white-space: pre-wrap;">float time_step; // Time in seconds between engine time steps</pre>
| |
− | <pre style="white-space: pre-wrap;">float ui_time; // The current time in seconds since engine started (absolute time)</pre>
| |
− | <pre style="white-space: pre-wrap;">uint UINT32MAX;</pre>
| |
| | | |
| == Constants == | | == Constants == |
| | | |
| <pre style="white-space: pre-wrap;">enum AnimationFlags : uint8;</pre> | | <pre style="white-space: pre-wrap;">enum AnimationFlags : uint8;</pre> |
− | <pre style="white-space: pre-wrap;">enum AttachmentType;</pre>
| |
| <pre style="white-space: pre-wrap;">enum AttackerDirectionType : int;</pre> | | <pre style="white-space: pre-wrap;">enum AttackerDirectionType : int;</pre> |
| <pre style="white-space: pre-wrap;">enum AttackerHeightType : int;</pre> | | <pre style="white-space: pre-wrap;">enum AttackerHeightType : int;</pre> |
− | <pre style="white-space: pre-wrap;">enum CameraFlags;</pre>
| |
| <pre style="white-space: pre-wrap;">enum CollisionSides;</pre> | | <pre style="white-space: pre-wrap;">enum CollisionSides;</pre> |
− | <pre style="white-space: pre-wrap;">enum DebugDrawLifespanType : int;</pre>
| |
− | <pre style="white-space: pre-wrap;">enum EngineState;</pre>
| |
− | <pre style="white-space: pre-wrap;">enum EntityType;</pre>
| |
− | <pre style="white-space: pre-wrap;">enum ItemType : int;</pre>
| |
− | <pre style="white-space: pre-wrap;">enum JsonValueType;</pre>
| |
− | <pre style="white-space: pre-wrap;">enum KeyboardInputModeFlag;</pre>
| |
− | <pre style="white-space: pre-wrap;">enum KnockedOutType : int;</pre>
| |
− | <pre style="white-space: pre-wrap;">enum LogType;</pre>
| |
− | <pre style="white-space: pre-wrap;">enum MessageType : int;</pre>
| |
| <pre style="white-space: pre-wrap;">enum NavPathFlag;</pre> | | <pre style="white-space: pre-wrap;">enum NavPathFlag;</pre> |
− | <pre style="white-space: pre-wrap;">enum SDLNumeric;</pre>
| |
| <pre style="white-space: pre-wrap;">enum SamplePolyFlag;</pre> | | <pre style="white-space: pre-wrap;">enum SamplePolyFlag;</pre> |
− | <pre style="white-space: pre-wrap;">enum SoundGroupPriorityType : int;</pre>
| |
− | <pre style="white-space: pre-wrap;">enum TextAtlasFlags;</pre>
| |
− | <pre style="white-space: pre-wrap;">enum UserVote;</pre>
| |
| | | |
| == Global Functions == | | == Global Functions == |
| | | |
− | <pre style="white-space: pre-wrap;">float abs(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">float acos(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">float asin(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">void assert(bool val);</pre>
| |
− | <pre style="white-space: pre-wrap;">float atan(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">float atan2(float, float);</pre>
| |
− | <pre style="white-space: pre-wrap;">float atof(const string &in str);</pre>
| |
− | <pre style="white-space: pre-wrap;">int atoi(const string &in str);</pre>
| |
− | <pre style="white-space: pre-wrap;">float ceil(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">float cos(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">vec3 cross(const vec3 &in, const vec3 &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">float distance(const vec2 &in, const vec2 &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">float distance(const vec3 &in, const vec3 &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">float distance_squared(const vec2 &in, const vec2 &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">float distance_squared(const vec3 &in, const vec3 &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">float dot(const vec2 &in, const vec2 &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">float dot(const vec3 &in, const vec3 &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">float floor(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">double fpFromIEEE(uint64);</pre>
| |
− | <pre style="white-space: pre-wrap;">float fpFromIEEE(uint);</pre>
| |
− | <pre style="white-space: pre-wrap;">uint fpToIEEE(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">uint64 fpToIEEE(double);</pre>
| |
− | <pre style="white-space: pre-wrap;">BoneTransform invert(const BoneTransform &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">mat4 invert(mat4);</pre>
| |
− | <pre style="white-space: pre-wrap;">quaternion invert(quaternion quat);</pre>
| |
− | <pre style="white-space: pre-wrap;">float length(const vec2 &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">float length(const vec3 &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">float length_squared(const vec2 &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">float length_squared(const vec3 &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">float log(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">float log10(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">float max(float, float);</pre>
| |
− | <pre style="white-space: pre-wrap;">int max(int, int);</pre>
| |
− | <pre style="white-space: pre-wrap;">float min(float, float);</pre>
| |
− | <pre style="white-space: pre-wrap;">int min(int, int);</pre>
| |
− | <pre style="white-space: pre-wrap;">float mix(float a, float b, float amount);</pre>
| |
− | <pre style="white-space: pre-wrap;">BoneTransform mix(const BoneTransform &in a, const BoneTransform &in b, float alpha);</pre>
| |
− | <pre style="white-space: pre-wrap;">mat4 mix(const mat4 &in a, const mat4 &in b, float alpha);</pre>
| |
− | <pre style="white-space: pre-wrap;">quaternion mix(const quaternion &in a, const quaternion &in b, float alpha);</pre>
| |
− | <pre style="white-space: pre-wrap;">vec2 mix(vec2 a, vec2 b, float alpha);</pre>
| |
− | <pre style="white-space: pre-wrap;">vec3 mix(vec3 a, vec3 b, float alpha);</pre>
| |
− | <pre style="white-space: pre-wrap;">vec4 mix(vec4 a, vec4 b, float alpha);</pre>
| |
− | <pre style="white-space: pre-wrap;">vec2 normalize(const vec2 &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">vec3 normalize(const vec3 &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">float pow(float val, float exponent);</pre>
| |
− | <pre style="white-space: pre-wrap;">int rand();</pre>
| |
− | <pre style="white-space: pre-wrap;">vec2 reflect(const vec2 &in vec, const vec2 &in normal);</pre>
| |
− | <pre style="white-space: pre-wrap;">vec3 reflect(const vec3 &in vec, const vec3 &in normal);</pre>
| |
− | <pre style="white-space: pre-wrap;">float sin(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">float sqrt(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">float tan(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">mat4 transpose(mat4);</pre>
| |
− | <pre style="white-space: pre-wrap;">float xz_distance(const vec3 &in, const vec3 &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">float xz_distance_squared(const vec3 &in, const vec3 &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">void ActivateKeyboardEvents();</pre>
| |
− | <pre style="white-space: pre-wrap;">void AddDebugDrawRibbonPoint(int which, vec3 pos, vec4 color, float width);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool AddMusic(const string &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">void Breakpoint(int);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool CheckSaveLevelChanges();</pre>
| |
− | <pre style="white-space: pre-wrap;">void ClearTemporaryDecals(); // Like blood splats and footprints</pre>
| |
− | <pre style="white-space: pre-wrap;">void ClearUndoHistory();</pre>
| |
− | <pre style="white-space: pre-wrap;">void ConnectParticles(uint32 id_a, uint32 id_b); // Used for ribbon particles, like throat-cut blood</pre>
| |
− | <pre style="white-space: pre-wrap;">void CreateCustomHull(const string &in key, const array<vec3> &vertices);</pre>
| |
− | <pre style="white-space: pre-wrap;">int CreateObject(const string &in path);</pre>
| |
− | <pre style="white-space: pre-wrap;">int CreateObject(const string &in path, bool exclude_from_save);</pre>
| |
− | <pre style="white-space: pre-wrap;">void DeactivateAllMods();</pre>
| |
− | <pre style="white-space: pre-wrap;">void DeactivateKeyboardEvents();</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugDrawBillboard(const string &in path, vec3 center, float scale, vec4 color, int lifespan);</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugDrawCircle(mat4 transform, vec4 color, int lifespan);</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugDrawLine(vec3 start, vec3 end, vec3 color, int lifespan);</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugDrawLine(vec3 start, vec3 end, vec3 start_color, vec3 end_color, int lifespan);</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugDrawLine(vec3 start, vec3 end, vec4 start_color, vec4 end_color, int lifespan);</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugDrawLines(const array<vec3> &vertices, vec4 color, int lifespan);</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugDrawPoint(vec3 pos, vec4 color, int lifespan);</pre>
| |
− | <pre style="white-space: pre-wrap;">void DebugDrawRemove(int id);</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugDrawRibbon(int lifespan);</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugDrawRibbon(vec3 start, vec3 end, vec4 start_color, vec4 end_color, float start_width, float end_width, int lifespan);</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugDrawText(vec3 pos, string text, float scale, bool screen_space, int lifespan);</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugDrawWireBox(vec3 pos, vec3 dimensions, vec3 color, int lifespan);</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugDrawWireCylinder(vec3 pos, float radius, float height, vec3 color, int lifespan);</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugDrawWireMesh(string path, mat4 transform, vec4 color, int lifespan);</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugDrawWireScaledSphere(vec3 pos, float radius, vec3 scale, vec3 color, int lifespan);</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugDrawWireScaledSphere(vec3 pos, float radius, vec3 scale, vec4 color, int lifespan);</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugDrawWireSphere(vec3 pos, float radius, vec3 color, int lifespan);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool DebugKeysEnabled();</pre>
| |
− | <pre style="white-space: pre-wrap;">int DebugSetPosition(int id, vec3 pos);</pre>
| |
− | <pre style="white-space: pre-wrap;">void DebugText(string key, string display_text, float lifetime);</pre>
| |
− | <pre style="white-space: pre-wrap;">void DeleteObjectID(int);</pre>
| |
− | <pre style="white-space: pre-wrap;">void DeselectAll();</pre>
| |
− | <pre style="white-space: pre-wrap;">void DisplayError(const string &in title, const string &in contents);</pre>
| |
− | <pre style="white-space: pre-wrap;">void DisposeTextAtlases();</pre>
| |
− | <pre style="white-space: pre-wrap;">bool DoesItemFitInItem(int item_id, int holster_item_id);</pre>
| |
− | <pre style="white-space: pre-wrap;">void DrawTextAtlas(const string &in path, int pixel_height, int flags, const string &in txt, int x, int y, vec4 color);</pre>
| |
− | <pre style="white-space: pre-wrap;">void DrawTextAtlas2(const string &in path, int pixel_height, int flags, const string &in txt, int x, int y, vec4 color, uint char_limit);</pre>
| |
− | <pre style="white-space: pre-wrap;">int DuplicateObject(Object@ obj);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool EditorEnabled();</pre>
| |
− | <pre style="white-space: pre-wrap;">bool EditorModeActive();</pre>
| |
− | <pre style="white-space: pre-wrap;">void EnterTelemetryZone(const string &in name);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool FileExists(string &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">int FindFirstCharacterInGroup(int id);</pre>
| |
− | <pre style="white-space: pre-wrap;">string FloatString(float val, int digits);</pre>
| |
− | <pre style="white-space: pre-wrap;">array<ModID>@ GetActiveModSids();</pre>
| |
| <pre style="white-space: pre-wrap;">float GetAnimationEventTime( string &in anim_path, string &in event_label );</pre> | | <pre style="white-space: pre-wrap;">float GetAnimationEventTime( string &in anim_path, string &in event_label );</pre> |
− | <pre style="white-space: pre-wrap;">array<string>@ GetAvailableBindingCategories();</pre>
| |
− | <pre style="white-space: pre-wrap;">array<string>@ GetAvailableBindings(const string &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">vec3 GetBaseSkyTint();</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetBindingValue(string binding_category, string binding);</pre>
| |
− | <pre style="white-space: pre-wrap;">int GetBloodLevel();</pre>
| |
− | <pre style="white-space: pre-wrap;">const vec3 &GetBloodTint();</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetBuildTimestamp( );</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetBuildVersionFull( );</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetBuildVersionShort( );</pre>
| |
− | <pre style="white-space: pre-wrap;">Campaign GetCampaign(string& campaign_id);</pre>
| |
− | <pre style="white-space: pre-wrap;">array<Campaign>@ GetCampaigns();</pre>
| |
− | <pre style="white-space: pre-wrap;">void GetCharacters(array<int>@ id_array);</pre>
| |
− | <pre style="white-space: pre-wrap;">void GetCharactersInHull(string model_path, mat4, array<int>@ id_array);</pre>
| |
− | <pre style="white-space: pre-wrap;">void GetCharactersInSphere(vec3 position, float radius, array<int>@ id_array);</pre>
| |
− | <pre style="white-space: pre-wrap;">int GetCodeForKey(string key_name);</pre>
| |
− | <pre style="white-space: pre-wrap;">uint GetCodepointCount( const string &in );</pre>
| |
− | <pre style="white-space: pre-wrap;">bool GetConfigValueBool(string index);</pre>
| |
− | <pre style="white-space: pre-wrap;">float GetConfigValueFloat(string index);</pre>
| |
− | <pre style="white-space: pre-wrap;">int GetConfigValueInt(string key);</pre>
| |
− | <pre style="white-space: pre-wrap;">array<string>@ GetConfigValueOptions(string index);</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetConfigValueString(string index);</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetCurrCampaignID();</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetCurrLevel();</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetCurrLevelAbsPath();</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetCurrLevelID();</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetCurrLevelName();</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetCurrLevelRelPath();</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetCurrentLevelModsourceID();</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetCurrentMenuModsourceID();</pre>
| |
− | <pre style="white-space: pre-wrap;">int GetFontFaceID(const string &in path, int pixel_height);</pre>
| |
− | <pre style="white-space: pre-wrap;">float GetFriction(const vec3 &in position);</pre>
| |
− | <pre style="white-space: pre-wrap;">float GetHDRBlackPoint(void);</pre>
| |
− | <pre style="white-space: pre-wrap;">float GetHDRBloomMult(void);</pre>
| |
− | <pre style="white-space: pre-wrap;">float GetHDRWhitePoint(void);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool GetInputDown(int controller_id, const string &in input_label);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool GetInputDownFiltered(int controller_id, const string &in input_label, uint filter);</pre>
| |
− | <pre style="white-space: pre-wrap;">uint GetInputMode();</pre>
| |
− | <pre style="white-space: pre-wrap;">bool GetInputPressed(int controller_id, const string &in input_label);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool GetInputPressedFiltered(int controller_id, const string &in input_label, uint filter);</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetInterlevelData(const string &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">float GetLayerGain(const string &in layer);</pre>
| |
− | <pre style="white-space: pre-wrap;">array<string>@ GetLayerNames();</pre>
| |
− | <pre style="white-space: pre-wrap;">uint GetLengthInBytesForNCodepoints( const string &in, uint codepoint_index );</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetLevelName(const string& path);</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetLocaleStringForScancode(int scancode);</pre>
| |
− | <pre style="white-space: pre-wrap;">float GetLookXAxis(int controller_id);</pre>
| |
− | <pre style="white-space: pre-wrap;">float GetLookYAxis(int controller_id);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool GetMenuPaused(); // Is game paused by a menu</pre>
| |
− | <pre style="white-space: pre-wrap;">array<ModID>@ GetModSids();</pre>
| |
− | <pre style="white-space: pre-wrap;">float GetMoveXAxis(int controller_id);</pre>
| |
− | <pre style="white-space: pre-wrap;">float GetMoveYAxis(int controller_id);</pre>
| |
| <pre style="white-space: pre-wrap;">NavPoint GetNavPoint(vec3);</pre> | | <pre style="white-space: pre-wrap;">NavPoint GetNavPoint(vec3);</pre> |
| <pre style="white-space: pre-wrap;">vec3 GetNavPointPos(vec3);</pre> | | <pre style="white-space: pre-wrap;">vec3 GetNavPointPos(vec3);</pre> |
− | <pre style="white-space: pre-wrap;">int GetNumCharacters();</pre>
| |
− | <pre style="white-space: pre-wrap;">int GetNumHotspots();</pre>
| |
− | <pre style="white-space: pre-wrap;">int GetNumItems();</pre>
| |
− | <pre style="white-space: pre-wrap;">array<int> @GetObjectIDs();</pre>
| |
− | <pre style="white-space: pre-wrap;">array<int> @GetObjectIDsType(int type);</pre>
| |
− | <pre style="white-space: pre-wrap;">void GetObjectsInHull(string model_path, mat4, array<int>@ id_array);</pre>
| |
| <pre style="white-space: pre-wrap;">NavPath GetPath(vec3 start, vec3 end);</pre> | | <pre style="white-space: pre-wrap;">NavPath GetPath(vec3 start, vec3 end);</pre> |
| <pre style="white-space: pre-wrap;">NavPath GetPath(vec3 start, vec3 end, uint16 include_poly_flags, uint16 exclude_poly_flags);</pre> | | <pre style="white-space: pre-wrap;">NavPath GetPath(vec3 start, vec3 end, uint16 include_poly_flags, uint16 exclude_poly_flags);</pre> |
− | <pre style="white-space: pre-wrap;">uint64 GetPerformanceCounter(); // Get high precision time info for profiling</pre>
| |
− | <pre style="white-space: pre-wrap;">uint64 GetPerformanceFrequency(); // Used to convert PerformanceCounter into seconds</pre>
| |
− | <pre style="white-space: pre-wrap;">array<vec2>@ GetPossibleResolutions();</pre>
| |
− | <pre style="white-space: pre-wrap;">array<KeyboardPress>@ GetRawKeyboardInputs();</pre>
| |
− | <pre style="white-space: pre-wrap;">void GetRotationBetweenVectors(const vec3 &in start, const vec3 &in end, quaternion &out rotation);</pre>
| |
− | <pre style="white-space: pre-wrap;">int GetScreenHeight();</pre>
| |
− | <pre style="white-space: pre-wrap;">int GetScreenWidth();</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetSegment();</pre>
| |
− | <pre style="white-space: pre-wrap;">vec3 GetSkyTint();</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetSong();</pre>
| |
− | <pre style="white-space: pre-wrap;">bool GetSplitscreen();</pre>
| |
− | <pre style="white-space: pre-wrap;">string GetStringDescriptionForBinding( const string &in, const string &in );</pre>
| |
− | <pre style="white-space: pre-wrap;">float GetSunAmbient();</pre>
| |
− | <pre style="white-space: pre-wrap;">vec3 GetSunColor();</pre>
| |
− | <pre style="white-space: pre-wrap;">vec3 GetSunPosition();</pre>
| |
− | <pre style="white-space: pre-wrap;">TextMetrics GetTextAtlasMetrics(const string &in path, int pixel_height, int flags, const string &in txt );</pre>
| |
− | <pre style="white-space: pre-wrap;">TextMetrics GetTextAtlasMetrics2(const string &in path, int pixel_height, int flags, const string &in txt, uint char_limit );</pre>
| |
− | <pre style="white-space: pre-wrap;">bool IsGroupDerived(int id);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool IsKeyDown(int key_code);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool IsWorkshopAvailable();</pre>
| |
− | <pre style="white-space: pre-wrap;">bool IsWorkshopMod(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool IsWorkshopSubscribed(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">void LeaveTelemetryZone();</pre>
| |
| <pre style="white-space: pre-wrap;">vec3 LineLineIntersect(vec3 start_a, vec3 end_a, vec3 start_b, vec3 end_b); // Get closest point between two line segments</pre> | | <pre style="white-space: pre-wrap;">vec3 LineLineIntersect(vec3 start_a, vec3 end_a, vec3 start_b, vec3 end_b); // Get closest point between two line segments</pre> |
− | <pre style="white-space: pre-wrap;">void LoadEditorLevel();</pre>
| |
− | <pre style="white-space: pre-wrap;">void LoadLevel(string level_path);</pre>
| |
− | <pre style="white-space: pre-wrap;">void LoadLevelID(string id);</pre>
| |
− | <pre style="white-space: pre-wrap;">void Log( LogType level, const string &in str );</pre>
| |
− | <pre style="white-space: pre-wrap;">uint32 MakeParticle(string path, vec3 pos, vec3 vel);</pre>
| |
− | <pre style="white-space: pre-wrap;">uint32 MakeParticle(string path, vec3 pos, vec3 vel, vec3 color);</pre>
| |
− | <pre style="white-space: pre-wrap;">mat3 Mat3FromQuaternion(const quaternion &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">mat4 Mat4FromQuaternion(const quaternion &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool MediaMode();</pre>
| |
− | <pre style="white-space: pre-wrap;">bool ModActivation(ModID& sid, bool active);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool ModCanActivate(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">string ModGetAuthor(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">array<ModLevel>@ ModGetCampaignLevels(ModID& sid);</pre>
| |
− | <pre style="white-space: pre-wrap;">string ModGetDescription(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">string ModGetID(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">array<MenuItem>@ ModGetMenuItems(ModID& sid);</pre>
| |
− | <pre style="white-space: pre-wrap;">string ModGetName(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">string ModGetPath(ModID& sid);</pre>
| |
− | <pre style="white-space: pre-wrap;">array<ModLevel>@ ModGetSingleLevels(ModID& sid);</pre>
| |
− | <pre style="white-space: pre-wrap;">int ModGetSource(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">string ModGetTags(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">string ModGetThumbnail(ModID& sid);</pre>
| |
− | <pre style="white-space: pre-wrap;">UserVote ModGetUserVote(ModID& sid);</pre>
| |
− | <pre style="white-space: pre-wrap;">string ModGetValidityString(ModID& sid);</pre>
| |
− | <pre style="white-space: pre-wrap;">string ModGetVersion(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool ModIsActive(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool ModIsCore(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool ModIsFavorite(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool ModIsValid(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool ModNeedsRestart(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool MovementObjectExists(int id);</pre>
| |
− | <pre style="white-space: pre-wrap;">vec3 Mult(quaternion, vec3); // Applies a quaternion rotation to a vector</pre>
| |
| <pre style="white-space: pre-wrap;">vec3 NavRaycast(vec3 start, vec3 end);</pre> | | <pre style="white-space: pre-wrap;">vec3 NavRaycast(vec3 start, vec3 end);</pre> |
| <pre style="white-space: pre-wrap;">vec3 NavRaycastSlide(vec3 start, vec3 end, int depth);</pre> | | <pre style="white-space: pre-wrap;">vec3 NavRaycastSlide(vec3 start, vec3 end, int depth);</pre> |
− | <pre style="white-space: pre-wrap;">bool ObjectExists();</pre>
| |
− | <pre style="white-space: pre-wrap;">bool ObjectExists(int id);</pre>
| |
− | <pre style="white-space: pre-wrap;">void OpenModAuthorWorkshopPage(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">void OpenModWorkshopPage(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">void OpenWorkshop();</pre>
| |
− | <pre style="white-space: pre-wrap;">void PlaySegment(const string &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">void PlaySong(const string &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">int PlaySound(string path);</pre>
| |
− | <pre style="white-space: pre-wrap;">int PlaySound(string path, vec3 position);</pre>
| |
− | <pre style="white-space: pre-wrap;">int PlaySoundGroup(string path);</pre>
| |
− | <pre style="white-space: pre-wrap;">int PlaySoundGroup(string path, float gain);</pre>
| |
− | <pre style="white-space: pre-wrap;">int PlaySoundGroup(string path, vec3 position);</pre>
| |
− | <pre style="white-space: pre-wrap;">int PlaySoundGroup(string path, vec3 position, float gain);</pre>
| |
− | <pre style="white-space: pre-wrap;">int PlaySoundGroup(string path, vec3 position, int priority);</pre>
| |
− | <pre style="white-space: pre-wrap;">int PlaySoundLoop(const string &in path, float gain);</pre>
| |
− | <pre style="white-space: pre-wrap;">int PlaySoundLoopAtLocation(const string &in path, vec3 pos, float gain);</pre>
| |
− | <pre style="white-space: pre-wrap;">void PrintCallstack();</pre>
| |
− | <pre style="white-space: pre-wrap;">quaternion QuaternionFromMat4(const mat4 &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">void QueueDeleteObjectID(int);</pre>
| |
− | <pre style="white-space: pre-wrap;">void QueueSegment(const string &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">float RangedRandomFloat(float min, float max);</pre>
| |
− | <pre style="white-space: pre-wrap;">MovementObject@ ReadCharacter(int index); // e.g. first character in scene</pre>
| |
− | <pre style="white-space: pre-wrap;">MovementObject@ ReadCharacterID(int id); // e.g. character with object ID 39</pre>
| |
− | <pre style="white-space: pre-wrap;">EnvObject@ ReadEnvObjectID(int id);</pre>
| |
− | <pre style="white-space: pre-wrap;">Hotspot@ ReadHotspot(int index);</pre>
| |
− | <pre style="white-space: pre-wrap;">ItemObject@ ReadItem(int index);</pre>
| |
− | <pre style="white-space: pre-wrap;">ItemObject@ ReadItemID(int id);</pre>
| |
− | <pre style="white-space: pre-wrap;">Object@ ReadObjectFromID(int);</pre>
| |
− | <pre style="white-space: pre-wrap;">void ReloadMods();</pre>
| |
− | <pre style="white-space: pre-wrap;">void ReloadStaticValues();</pre>
| |
− | <pre style="white-space: pre-wrap;">bool RemoveMusic(const string &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">void RequestModSetFavorite(ModID& id, bool fav);</pre>
| |
− | <pre style="white-space: pre-wrap;">void RequestModSetUserVote(ModID& id, bool voteup);</pre>
| |
− | <pre style="white-space: pre-wrap;">void RequestWorkshopSubscribe(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">void RequestWorkshopUnSubscribe(ModID& id);</pre>
| |
− | <pre style="white-space: pre-wrap;">void ResetBinding(string binding_category, string binding);</pre>
| |
− | <pre style="white-space: pre-wrap;">void ResetLevel();</pre>
| |
− | <pre style="white-space: pre-wrap;">void RibbonItemFlash(const string &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">void RibbonItemSetEnabled(const string &in, bool);</pre>
| |
− | <pre style="white-space: pre-wrap;">void RibbonItemSetToggled(const string &in, bool);</pre>
| |
− | <pre style="white-space: pre-wrap;">string SaveConfig();</pre>
| |
− | <pre style="white-space: pre-wrap;">void SendGlobalMessage(string msg);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SendMessage(int target, int type, vec3 vec_a, vec3 vec_b);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SendMessage(int type, string msg);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetAirWhoosh(float volume, float pitch);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetBindingValue(string binding_category, string binding, string value);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetCampaignID(string id);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetConfigValueBool(string key, bool value);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetConfigValueFloat(string key, float value);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetConfigValueInt(string key, int value);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetConfigValueString(string key, string value);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetFlareDiffuse(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetGrabMouse(bool);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetHDRBlackPoint(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetHDRBloomMult(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetHDRWhitePoint(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetInterlevelData(const string &in, const string &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetKeyboardBindingValue(string binding_category, string binding, uint32 scancode);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetLayerGain(const string &in layer, float gain);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetMediaMode(bool);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetPaused(bool paused);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetSegment(const string &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetSkyTint(vec3);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetSong(const string &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetSoundGain(int handle, float gain);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetSoundPitch(int handle, float pitch);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetSoundPosition(int handle, vec3 pos);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetSunAmbient(float);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetSunColor(vec3);</pre>
| |
− | <pre style="white-space: pre-wrap;">void SetSunPosition(vec3);</pre>
| |
− | <pre style="white-space: pre-wrap;">void StartStopwatch();</pre>
| |
− | <pre style="white-space: pre-wrap;">void StartTextInput();</pre>
| |
− | <pre style="white-space: pre-wrap;">uint64 StopAndReportStopwatch();</pre>
| |
− | <pre style="white-space: pre-wrap;">void StopSound(int handle);</pre>
| |
− | <pre style="white-space: pre-wrap;">void StopTextInput();</pre>
| |
− | <pre style="white-space: pre-wrap;">int StorageGetInt32(string index);</pre>
| |
− | <pre style="white-space: pre-wrap;">string StorageGetString(string index);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool StorageHasInt32(string index);</pre>
| |
− | <pre style="white-space: pre-wrap;">bool StorageHasString(string index);</pre>
| |
− | <pre style="white-space: pre-wrap;">void StorageSetInt32(string index, int value);</pre>
| |
− | <pre style="white-space: pre-wrap;">void StorageSetString(string index, string value);</pre>
| |
− | <pre style="white-space: pre-wrap;">void TimedSlowMotion(float target_time_scale, float how_long, float delay); // Used to trigger brief periods of slow motion</pre>
| |
− | <pre style="white-space: pre-wrap;">void TintParticle(uint32 id, const vec3 &in color);</pre>
| |
− | <pre style="white-space: pre-wrap;">string ToUpper(string &in);</pre>
| |
− | <pre style="white-space: pre-wrap;">void UpdateListener(vec3 pos, vec3 vel, vec3 facing, vec3 up);</pre>
| |
− | <pre style="white-space: pre-wrap;">uint WorkshopDownloadPendingCount();</pre>
| |
− | <pre style="white-space: pre-wrap;">uint WorkshopDownloadingCount();</pre>
| |
− | <pre style="white-space: pre-wrap;">uint WorkshopNeedsUpdateCount();</pre>
| |
− | <pre style="white-space: pre-wrap;">uint WorkshopSubscribedNotInstalledCount();</pre>
| |
− | <pre style="white-space: pre-wrap;">float WorkshopTotalDownloadProgress();</pre>
| |
| | | |
| == Classes == | | == Classes == |
| | | |
− | <pre style="white-space: pre-wrap;">class array<T>;</pre>
| |
− | <pre style="white-space: pre-wrap;">class mat3;</pre>
| |
− | <pre style="white-space: pre-wrap;">class mat4;</pre>
| |
− | <pre style="white-space: pre-wrap;">class quaternion;</pre>
| |
− | <pre style="white-space: pre-wrap;">class vec2;</pre>
| |
− | <pre style="white-space: pre-wrap;">class vec3;</pre>
| |
− | <pre style="white-space: pre-wrap;">class vec4;</pre>
| |
| <pre style="white-space: pre-wrap;">class ASCollisions;</pre> | | <pre style="white-space: pre-wrap;">class ASCollisions;</pre> |
− | <pre style="white-space: pre-wrap;">class ASContext;</pre>
| |
− | <pre style="white-space: pre-wrap;">class AnimationClient;</pre>
| |
| <pre style="white-space: pre-wrap;">class AttackScriptGetter;</pre> | | <pre style="white-space: pre-wrap;">class AttackScriptGetter;</pre> |
− | <pre style="white-space: pre-wrap;">class BoneTransform;</pre>
| |
− | <pre style="white-space: pre-wrap;">class Camera;</pre>
| |
− | <pre style="white-space: pre-wrap;">class Campaign;</pre>
| |
− | <pre style="white-space: pre-wrap;">class CharacterScriptGetter;</pre>
| |
| <pre style="white-space: pre-wrap;">class CollisionPoint;</pre> | | <pre style="white-space: pre-wrap;">class CollisionPoint;</pre> |
− | <pre style="white-space: pre-wrap;">class EnvObject;</pre>
| |
− | <pre style="white-space: pre-wrap;">class Hotspot;</pre>
| |
− | <pre style="white-space: pre-wrap;">class ItemObject;</pre>
| |
− | <pre style="white-space: pre-wrap;">class JSON;</pre>
| |
− | <pre style="white-space: pre-wrap;">class JSONValue;</pre>
| |
− | <pre style="white-space: pre-wrap;">class KeyboardPress;</pre>
| |
− | <pre style="white-space: pre-wrap;">class Level;</pre>
| |
− | <pre style="white-space: pre-wrap;">class LevelDetails;</pre>
| |
− | <pre style="white-space: pre-wrap;">class MenuItem;</pre>
| |
− | <pre style="white-space: pre-wrap;">class ModID;</pre>
| |
− | <pre style="white-space: pre-wrap;">class ModLevel;</pre>
| |
− | <pre style="white-space: pre-wrap;">class MovementObject;</pre>
| |
| <pre style="white-space: pre-wrap;">class NavPath;</pre> | | <pre style="white-space: pre-wrap;">class NavPath;</pre> |
| <pre style="white-space: pre-wrap;">class NavPoint;</pre> | | <pre style="white-space: pre-wrap;">class NavPoint;</pre> |
− | <pre style="white-space: pre-wrap;">class Object;</pre>
| |
− | <pre style="white-space: pre-wrap;">class PathPointObject;</pre>
| |
− | <pre style="white-space: pre-wrap;">class Physics;</pre>
| |
| <pre style="white-space: pre-wrap;">class ReactionScriptGetter;</pre> | | <pre style="white-space: pre-wrap;">class ReactionScriptGetter;</pre> |
− | <pre style="white-space: pre-wrap;">class RiggedObject;</pre>
| |
− | <pre style="white-space: pre-wrap;">class ScriptParams;</pre>
| |
− | <pre style="white-space: pre-wrap;">class Skeleton;</pre>
| |
| <pre style="white-space: pre-wrap;">class SphereCollision;</pre> | | <pre style="white-space: pre-wrap;">class SphereCollision;</pre> |
− | <pre style="white-space: pre-wrap;">class TextCanvasTexture;</pre>
| |
− | <pre style="white-space: pre-wrap;">class TextMetrics;</pre>
| |
− | <pre style="white-space: pre-wrap;">class TextStyle;</pre>
| |
− | <pre style="white-space: pre-wrap;">class TokenIterator;</pre>
| |