diff --git a/api/actor/State.md b/api/actor/State.md index bac947c..5141c44 100644 --- a/api/actor/State.md +++ b/api/actor/State.md @@ -7,29 +7,29 @@ as it is merely a look into the global constant state table. ``` struct State { - readonly uint8 Frame; - readonly State NextState; - readonly int Sprite; - readonly int16 Tics; + readonly uint8 Frame; + readonly State NextState; + readonly int Sprite; + readonly int16 Tics; - readonly int Misc1; - readonly int Misc2; - readonly uint16 TicRange; - readonly uint8 UseFlags; + readonly int Misc1; + readonly int Misc2; + readonly uint16 TicRange; + readonly uint8 UseFlags; - readonly bool bCanRaise; - readonly bool bDeHackEd; - readonly bool bFast; - readonly bool bFullBright; - readonly bool bNoDelay; - readonly bool bSameFrame; - readonly bool bSlow; + readonly bool bCanRaise; + readonly bool bDeHackEd; + readonly bool bFast; + readonly bool bFullBright; + readonly bool bNoDelay; + readonly bool bSameFrame; + readonly bool bSlow; - int DistanceTo(State other); - bool InStateSequence(State base); - bool ValidateSpriteFrame(); + int DistanceTo(State other); + bool InStateSequence(State base); + bool ValidateSpriteFrame(); - textureid, bool, vector2 GetSpriteTexture(int rotation, int skin = 0, vector2 scale = (0, 0)); + textureid, bool, vector2 GetSpriteTexture(int rotation, int skin = 0, vector2 scale = (0, 0)); } ``` diff --git a/api/base/Array.md b/api/base/Array.md index dff0e71..1236006 100644 --- a/api/base/Array.md +++ b/api/base/Array.md @@ -9,24 +9,24 @@ variant of `TArray` existing in the engine. ``` struct Array { - uint Max() const; - uint Size() const; + uint Max() const; + uint Size() const; - void Append(array other); - void Copy(array other); - void Move(array other); + void Append(array other); + void Copy(array other); + void Move(array other); - void Clear(); - void Delete(uint index, int deletecount = 1); - bool Pop(); + void Clear(); + void Delete(uint index, int deletecount = 1); + bool Pop(); - uint Find(Type item) const; - void Grow(uint amount); - void Insert(uint index, Type item); - uint Push(Type item); - uint Reserve(uint amount); - void Resize(uint amount); - void ShrinkToFit(); + uint Find(Type item) const; + void Grow(uint amount); + void Insert(uint index, Type item); + uint Push(Type item); + uint Reserve(uint amount); + void Resize(uint amount); + void ShrinkToFit(); } ``` diff --git a/api/base/CVar.md b/api/base/CVar.md index 175695b..23be616 100644 --- a/api/base/CVar.md +++ b/api/base/CVar.md @@ -9,21 +9,21 @@ as they aren't "strongly" typed. ``` struct CVar { - static CVar FindCVar(name n); - static CVar GetCVar(name n, PlayerInfo player = null); + static CVar FindCVar(name n); + static CVar GetCVar(name n, PlayerInfo player = null); - bool GetBool(); - double GetFloat(); - int GetInt(); - string GetString(); + bool GetBool(); + double GetFloat(); + int GetInt(); + string GetString(); - void SetBool(bool v); - void SetFloat(double v); - void SetInt(int v); - void SetString(string v); + void SetBool(bool v); + void SetFloat(double v); + void SetInt(int v); + void SetString(string v); - int GetRealType(); - int ResetToDefault(); + int GetRealType(); + int ResetToDefault(); } ``` diff --git a/api/base/Color.md b/api/base/Color.md index 59df4a9..8231106 100644 --- a/api/base/Color.md +++ b/api/base/Color.md @@ -6,7 +6,7 @@ range 0 to 255, inclusive. ``` struct Color { - uint8 r, g, b, a; + uint8 r, g, b, a; } ``` diff --git a/api/base/FixedArray.md b/api/base/FixedArray.md index 5a5629b..37242d9 100644 --- a/api/base/FixedArray.md +++ b/api/base/FixedArray.md @@ -5,7 +5,7 @@ Fixed-size arrays have a size method attached to them for convenience purposes. ``` struct Type[N] { - uint Size() const; + uint Size() const; } ``` diff --git a/api/base/Object.md b/api/base/Object.md index bc277ef..45ea56d 100644 --- a/api/base/Object.md +++ b/api/base/Object.md @@ -5,15 +5,15 @@ The base class of all `class` types. ``` class Object { - bool bDestroyed; + bool bDestroyed; - class GetClass(); - string GetClassName(); - class GetParentClass(); + class GetClass(); + string GetClassName(); + class GetParentClass(); - virtualscope void Destroy(); + virtualscope void Destroy(); - virtual virtualscope void OnDestroy(); + virtual virtualscope void OnDestroy(); } ``` diff --git a/api/base/String.md b/api/base/String.md index 8f591f2..e026a19 100644 --- a/api/base/String.md +++ b/api/base/String.md @@ -5,28 +5,28 @@ Strings have many methods attached to them for manipulating text. ``` struct String { - static vararg string Format(string format, ...); + static vararg string Format(string format, ...); - vararg void AppendFormat(string format, ...); + vararg void AppendFormat(string format, ...); - string CharAt(int pos) const; - int CharCodeAt(int pos) const; - string Filter(); - int IndexOf(string substr, int startIndex = 0) const; - string Left(int len) const; - uint Length() const; - string Mid(int pos = 0, int len = int.Max) const; - void Remove(int index, int amount); - void Replace(string pattern, string replacement); - int RightIndexOf(string substr, int endIndex = int.Max) const; - void Split(out array tokens, string delimiter, EmptyTokenType keepEmpty = TOK_KEEPEMPTY) const; - double ToDouble() const; - int ToInt(int base = 0) const; - void ToLower(); - void ToUpper(); - void Truncate(int newlen); + string CharAt(int pos) const; + int CharCodeAt(int pos) const; + string Filter(); + int IndexOf(string substr, int startIndex = 0) const; + string Left(int len) const; + uint Length() const; + string Mid(int pos = 0, int len = int.Max) const; + void Remove(int index, int amount); + void Replace(string pattern, string replacement); + int RightIndexOf(string substr, int endIndex = int.Max) const; + void Split(out array tokens, string delimiter, EmptyTokenType keepEmpty = TOK_KEEPEMPTY) const; + double ToDouble() const; + int ToInt(int base = 0) const; + void ToLower(); + void ToUpper(); + void Truncate(int newlen); - deprecated("3.5.1") int LastIndexOf(string substr, int endIndex = int.Max) const; + deprecated("3.5.1") int LastIndexOf(string substr, int endIndex = int.Max) const; } ``` diff --git a/api/base/StringTable.md b/api/base/StringTable.md index 6d49ac5..6536c29 100644 --- a/api/base/StringTable.md +++ b/api/base/StringTable.md @@ -5,7 +5,7 @@ The localized string table as defined by `LANGUAGE`. ``` struct StringTable { - static string Localize(string val, bool prefixed = true); + static string Localize(string val, bool prefixed = true); } ``` diff --git a/api/base/Thinker.md b/api/base/Thinker.md index e9e88ac..23e35ee 100644 --- a/api/base/Thinker.md +++ b/api/base/Thinker.md @@ -52,16 +52,16 @@ Thinkers which do think and are mandatory to many checks: ``` class Thinker : Object play { - const TICRATE; + const TICRATE; - LevelLocals Level; + LevelLocals Level; - void ChangeStatNum(int stat); + void ChangeStatNum(int stat); - virtual void PostBeginPlay(); - virtual void Tick(); + virtual void PostBeginPlay(); + virtual void Tick(); - static clearscope int Tics2Seconds(int tics); + static clearscope int Tics2Seconds(int tics); } ``` diff --git a/api/base/Vector.md b/api/base/Vector.md index e6641b5..17e3615 100644 --- a/api/base/Vector.md +++ b/api/base/Vector.md @@ -6,19 +6,19 @@ operator. ``` struct Vector2 { - double x, y; + double x, y; - double Length() const; - vector2 Unit() const; + double Length() const; + vector2 Unit() const; } struct Vector3 { - double x, y, z; - vector2 xy; + double x, y, z; + vector2 xy; - double Length() const; - vector3 Unit() const; + double Length() const; + vector3 Unit() const; } ``` diff --git a/api/drawing/BrokenLines.md b/api/drawing/BrokenLines.md index 31d81d7..8e11835 100644 --- a/api/drawing/BrokenLines.md +++ b/api/drawing/BrokenLines.md @@ -6,9 +6,9 @@ fit the screen and clipping region. ``` class BrokenLines : Object { - int Count(); - string StringAt(int line); - int StringWidth(int line); + int Count(); + string StringAt(int line); + int StringWidth(int line); } ``` diff --git a/api/drawing/Console.md b/api/drawing/Console.md index dc27978..98b05bb 100644 --- a/api/drawing/Console.md +++ b/api/drawing/Console.md @@ -5,9 +5,9 @@ Basic access to console functionality. ``` struct Console { - static void HideConsole(); - static void MidPrint(Font font, string text, bool bold = false); - static vararg void PrintF(string fmt, ...); + static void HideConsole(); + static void MidPrint(Font font, string text, bool bold = false); + static vararg void PrintF(string fmt, ...); } ``` diff --git a/api/drawing/Font.md b/api/drawing/Font.md index 52fddc6..a997252 100644 --- a/api/drawing/Font.md +++ b/api/drawing/Font.md @@ -6,17 +6,17 @@ not use as a member unless marked as `transient`.** ``` struct Font { - static Font FindFont(name fontname); - static int FindFontColor(name color); - static Font GetFont(name fontname); + static Font FindFont(name fontname); + static int FindFontColor(name color); + static Font GetFont(name fontname); - double GetBottomAlignOffset(int code); - int GetCharWidth(int code); - string GetCursor(); - int GetHeight(); - int StringWidth(string code); + double GetBottomAlignOffset(int code); + int GetCharWidth(int code); + string GetCursor(); + int GetHeight(); + int StringWidth(string code); - BrokenLines BreakLines(string text, int maxlen); + BrokenLines BreakLines(string text, int maxlen); } ``` diff --git a/api/drawing/GIFont.md b/api/drawing/GIFont.md index a7a2072..1384133 100644 --- a/api/drawing/GIFont.md +++ b/api/drawing/GIFont.md @@ -5,8 +5,8 @@ A font as defined in `MAPINFO`/GameInfo. ``` struct GIFont { - name Color; - name FontName; + name Color; + name FontName; } ``` diff --git a/api/drawing/Screen.md b/api/drawing/Screen.md index 04553a3..48c397d 100644 --- a/api/drawing/Screen.md +++ b/api/drawing/Screen.md @@ -8,27 +8,27 @@ Note: There are no longer any fully paletted renderers in GZDoom as of version ``` struct Screen { - static vararg void DrawChar(Font font, int cr, double x, double y, int character, ...); - static vararg void DrawShape(textureid tex, bool animate, Shape2D s, ...); - static vararg void DrawText(Font font, int cr, double x, double y, string text, ...); - static vararg void DrawTexture(textureid tex, bool animate, double x, double y, ...); + static vararg void DrawChar(Font font, int cr, double x, double y, int character, ...); + static vararg void DrawShape(textureid tex, bool animate, Shape2D s, ...); + static vararg void DrawText(Font font, int cr, double x, double y, string text, ...); + static vararg void DrawTexture(textureid tex, bool animate, double x, double y, ...); - static void Clear(int left, int top, int right, int bottom, color cr, int palcolor = -1); - static void Dim(color cr, double amount, int x, int y, int w, int h); - static void DrawFrame(int x, int y, int w, int h); - static void DrawLine(int x0, int y0, int x1, int y1, color cr, int alpha = 255); - static void DrawThickLine(int x0, int y0, int x1, int y1, double thickness, color cr, int alpha = 255); + static void Clear(int left, int top, int right, int bottom, color cr, int palcolor = -1); + static void Dim(color cr, double amount, int x, int y, int w, int h); + static void DrawFrame(int x, int y, int w, int h); + static void DrawLine(int x0, int y0, int x1, int y1, color cr, int alpha = 255); + static void DrawThickLine(int x0, int y0, int x1, int y1, double thickness, color cr, int alpha = 255); - static double GetAspectRatio(); - static int GetHeight(); - static int GetWidth(); - static color PaletteColor(int index); - static vector2, vector2 VirtualToRealCoords(vector2 pos, vector2 size, vector2 vsize, bool vbottom = false, bool handleaspect = true); + static double GetAspectRatio(); + static int GetHeight(); + static int GetWidth(); + static color PaletteColor(int index); + static vector2, vector2 VirtualToRealCoords(vector2 pos, vector2 size, vector2 vsize, bool vbottom = false, bool handleaspect = true); - static void ClearClipRect(); - static int, int, int, int GetClipRect(); - static int, int, int, int GetViewWindow(); - static void SetClipRect(int x, int y, int w, int h); + static void ClearClipRect(); + static int, int, int, int GetClipRect(); + static int, int, int, int GetViewWindow(); + static void SetClipRect(int x, int y, int w, int h); } ``` diff --git a/api/drawing/Shape2D.md b/api/drawing/Shape2D.md index f0353c9..6eed304 100644 --- a/api/drawing/Shape2D.md +++ b/api/drawing/Shape2D.md @@ -5,10 +5,10 @@ Represents an arbitrary polygonal 2D shape. ``` class Shape2D : Object { - void Clear(int which = C_Verts | C_Coords | C_Indices); - void PushCoord(vector2 c); - void PushTriangle(int a, int b, int c); - void PushVertex(vector2 v); + void Clear(int which = C_Verts | C_Coords | C_Indices); + void PushCoord(vector2 c); + void PushTriangle(int a, int b, int c); + void PushVertex(vector2 v); } ``` diff --git a/api/drawing/TexMan.md b/api/drawing/TexMan.md index 5a414d2..298129d 100644 --- a/api/drawing/TexMan.md +++ b/api/drawing/TexMan.md @@ -6,16 +6,16 @@ information on textures. ``` struct TexMan { - static textureid CheckForTexture(string name, int usetype, int flags = TexMan.TryAny); - static int CheckRealHeight(textureid tex); - static string GetName(textureid tex); - static vector2 GetScaledOffset(textureid tex); - static vector2 GetScaledSize(textureid tex); - static int, int GetSize(textureid tex); - static void SetCameraToTexture(Actor viewpoint, string texture, double fov); - static bool OkForLocalization(textureid patch, string textSubstitute); + static textureid CheckForTexture(string name, int usetype, int flags = TexMan.TryAny); + static int CheckRealHeight(textureid tex); + static string GetName(textureid tex); + static vector2 GetScaledOffset(textureid tex); + static vector2 GetScaledSize(textureid tex); + static int, int GetSize(textureid tex); + static void SetCameraToTexture(Actor viewpoint, string texture, double fov); + static bool OkForLocalization(textureid patch, string textSubstitute); - deprecated("3.8") static void ReplaceTextures(string from, string to, int flags); + deprecated("3.8") static void ReplaceTextures(string from, string to, int flags); } ``` diff --git a/api/drawing/TextureID.md b/api/drawing/TextureID.md index 7599f69..f9f85d0 100644 --- a/api/drawing/TextureID.md +++ b/api/drawing/TextureID.md @@ -7,11 +7,11 @@ only works with the integer on the right hand side.) ``` struct TextureID { - bool Exists() const; - bool IsNull() const; - bool IsValid() const; - void SetInvalid(); - void SetNull(); + bool Exists() const; + bool IsNull() const; + bool IsValid() const; + void SetInvalid(); + void SetNull(); } ``` diff --git a/api/events/ConsoleEvent.md b/api/events/ConsoleEvent.md index 4706629..fcc524c 100644 --- a/api/events/ConsoleEvent.md +++ b/api/events/ConsoleEvent.md @@ -5,10 +5,10 @@ The information for a `ConsoleProcess` or `NetworkProcess` event. ``` struct ConsoleEvent { - readonly int Player; - readonly string Name; - readonly int Args[3]; - readonly bool IsManual; + readonly int Player; + readonly string Name; + readonly int Args[3]; + readonly bool IsManual; } ``` diff --git a/api/events/EventHandler.md b/api/events/EventHandler.md index d2bc594..a1d7725 100644 --- a/api/events/EventHandler.md +++ b/api/events/EventHandler.md @@ -15,8 +15,8 @@ overridden on this type. ``` class EventHandler : StaticEventHandler { - clearscope static StaticEventHandler Find(class type); - clearscope static void SendNetworkEvent(string name, int arg1 = 0, int arg2 = 0, int arg3 = 0); + clearscope static StaticEventHandler Find(class type); + clearscope static void SendNetworkEvent(string name, int arg1 = 0, int arg2 = 0, int arg3 = 0); } ``` diff --git a/api/events/RenderEvent.md b/api/events/RenderEvent.md index 1848a4d..bae4269 100644 --- a/api/events/RenderEvent.md +++ b/api/events/RenderEvent.md @@ -5,12 +5,12 @@ The information for a `RenderOverlay` event. ``` struct RenderEvent { - readonly vector3 ViewPos; - readonly double ViewAngle; - readonly double ViewPitch; - readonly double ViewRoll; - readonly double FracTic; - readonly Actor Camera; + readonly vector3 ViewPos; + readonly double ViewAngle; + readonly double ViewPitch; + readonly double ViewRoll; + readonly double FracTic; + readonly Actor Camera; } ``` diff --git a/api/events/ReplaceEvent.md b/api/events/ReplaceEvent.md index 1f5cf11..c2c3732 100644 --- a/api/events/ReplaceEvent.md +++ b/api/events/ReplaceEvent.md @@ -6,9 +6,9 @@ this event to change the result of replacement checking. ``` struct ReplaceEvent { - readonly class Replacee; - class Replacement; - bool IsFinal; + readonly class Replacee; + class Replacement; + bool IsFinal; } ``` diff --git a/api/events/StaticEventHandler.md b/api/events/StaticEventHandler.md index ad352c4..9b945d3 100644 --- a/api/events/StaticEventHandler.md +++ b/api/events/StaticEventHandler.md @@ -17,50 +17,50 @@ documentation. ``` class StaticEventHandler : Object play { - clearscope static StaticEventHandler Find(class type); + clearscope static StaticEventHandler Find(class type); - virtual void OnRegister(); - virtual void OnUnregister(); + virtual void OnRegister(); + virtual void OnUnregister(); - virtual void WorldLoaded(WorldEvent e); - virtual void WorldUnloaded(WorldEvent e); - virtual void WorldThingSpawned(WorldEvent e); - virtual void WorldThingDied(WorldEvent e); - virtual void WorldThingRevived(WorldEvent e); - virtual void WorldThingDamaged(WorldEvent e); - virtual void WorldThingDestroyed(WorldEvent e); - virtual void WorldLinePreActivated(WorldEvent e); - virtual void WorldLineActivated(WorldEvent e); - virtual void WorldSectorDamaged(WorldEvent e); - virtual void WorldLineDamaged(WorldEvent e); - virtual void WorldLightning(WorldEvent e); - virtual void WorldTick(); + virtual void WorldLoaded(WorldEvent e); + virtual void WorldUnloaded(WorldEvent e); + virtual void WorldThingSpawned(WorldEvent e); + virtual void WorldThingDied(WorldEvent e); + virtual void WorldThingRevived(WorldEvent e); + virtual void WorldThingDamaged(WorldEvent e); + virtual void WorldThingDestroyed(WorldEvent e); + virtual void WorldLinePreActivated(WorldEvent e); + virtual void WorldLineActivated(WorldEvent e); + virtual void WorldSectorDamaged(WorldEvent e); + virtual void WorldLineDamaged(WorldEvent e); + virtual void WorldLightning(WorldEvent e); + virtual void WorldTick(); - virtual ui void RenderOverlay(RenderEvent e); + virtual ui void RenderOverlay(RenderEvent e); - virtual void PlayerEntered(PlayerEvent e); - virtual void PlayerRespawned(PlayerEvent e); - virtual void PlayerDied(PlayerEvent e); - virtual void PlayerDisconnected(PlayerEvent e); + virtual void PlayerEntered(PlayerEvent e); + virtual void PlayerRespawned(PlayerEvent e); + virtual void PlayerDied(PlayerEvent e); + virtual void PlayerDisconnected(PlayerEvent e); - virtual ui bool UiProcess(UiEvent e); - virtual ui void UiTick(); - virtual ui void PostUiTick(); + virtual ui bool UiProcess(UiEvent e); + virtual ui void UiTick(); + virtual ui void PostUiTick(); - virtual ui bool InputProcess(InputEvent e); + virtual ui bool InputProcess(InputEvent e); - virtual ui void ConsoleProcess(ConsoleEvent e); - virtual void NetworkProcess(ConsoleEvent e); + virtual ui void ConsoleProcess(ConsoleEvent e); + virtual void NetworkProcess(ConsoleEvent e); - virtual void CheckReplacement(ReplaceEvent e); + virtual void CheckReplacement(ReplaceEvent e); - virtual void NewGame(); + virtual void NewGame(); - void SetOrder(int order); + void SetOrder(int order); - readonly int Order; - bool IsUiProcessor; - bool RequireMouse; + readonly int Order; + bool IsUiProcessor; + bool RequireMouse; } ``` diff --git a/api/files/Wads.md b/api/files/Wads.md index 913787c..c08d265 100644 --- a/api/files/Wads.md +++ b/api/files/Wads.md @@ -54,10 +54,10 @@ resource archive folder namespaces, which are normally under `NS_GLOBAL`. ``` struct Wads { - static int CheckNumForFullName(string name); - static int CheckNumForName(string name, int ns, int wadnum = -1, bool exact = false); - static int FindLump(string name, int startlump = 0, FindLumpNamespace ns = Wads.GLOBALNAMESPACE); - static string ReadLump(int lump); + static int CheckNumForFullName(string name); + static int CheckNumForName(string name, int ns, int wadnum = -1, bool exact = false); + static int FindLump(string name, int startlump = 0, FindLumpNamespace ns = Wads.GLOBALNAMESPACE); + static string ReadLump(int lump); } ``` diff --git a/api/global/type/DehInfo.md b/api/global/type/DehInfo.md index 7a9f9d3..fcccc39 100644 --- a/api/global/type/DehInfo.md +++ b/api/global/type/DehInfo.md @@ -5,13 +5,13 @@ Static DeHackEd information. ``` struct DehInfo { - readonly int BfgCells; - readonly int BlueAC; - readonly double ExplosionAlpha; - readonly uint8 ExplosionStyle; - readonly int MaxHealth; - readonly int MaxSoulsphere; - readonly int NoAutofreeze; + readonly int BfgCells; + readonly int BlueAC; + readonly double ExplosionAlpha; + readonly uint8 ExplosionStyle; + readonly int MaxHealth; + readonly int MaxSoulsphere; + readonly int NoAutofreeze; } ``` diff --git a/api/global/type/FOptionMenuSettings.md b/api/global/type/FOptionMenuSettings.md index 500eed6..ead5358 100644 --- a/api/global/type/FOptionMenuSettings.md +++ b/api/global/type/FOptionMenuSettings.md @@ -6,14 +6,14 @@ and `MAPINFO`/GameInfo. ``` struct FOptionMenuSettings { - int mTitleColor; - int mFontColor; - int mFontColorValue; - int mFontColorMore; - int mFontColorHeader; - int mFontColorHighlight; - int mFontColorSelection; - int mLineSpacing; + int mTitleColor; + int mFontColor; + int mFontColorValue; + int mFontColorMore; + int mFontColorHeader; + int mFontColorHighlight; + int mFontColorSelection; + int mLineSpacing; } ``` diff --git a/api/global/type/GameInfoStruct.md b/api/global/type/GameInfoStruct.md index 5e59c6f..040979e 100644 --- a/api/global/type/GameInfoStruct.md +++ b/api/global/type/GameInfoStruct.md @@ -5,28 +5,28 @@ Static information from `MAPINFO`/GameInfo. ``` struct GameInfoStruct { - double Armor2Percent; - string ArmorIcon1; - string ArmorIcon2; - name BackpackType; - textureid BerserkPic; - int DefKickBack; - color DefaultBloodColor; - int DefaultDropStyle; - int GameType; - double GibFactor; - textureid HealthPic; - array InfoPages; - bool IntermissionCounter; - bool NoRandomPlayerClass; - double NormForwardMove[2]; - double NormSideMove[2]; - double TeleFogHeight; - string mBackButton; - name mSliderColor; - GIFont mStatScreenEnteringFont; - GIFont mStatScreenFinishedFont; - GIFont mStatScreenMapNameFont; + double Armor2Percent; + string ArmorIcon1; + string ArmorIcon2; + name BackpackType; + textureid BerserkPic; + int DefKickBack; + color DefaultBloodColor; + int DefaultDropStyle; + int GameType; + double GibFactor; + textureid HealthPic; + array InfoPages; + bool IntermissionCounter; + bool NoRandomPlayerClass; + double NormForwardMove[2]; + double NormSideMove[2]; + double TeleFogHeight; + string mBackButton; + name mSliderColor; + GIFont mStatScreenEnteringFont; + GIFont mStatScreenFinishedFont; + GIFont mStatScreenMapNameFont; } ``` diff --git a/api/global/type/LevelLocals.md b/api/global/type/LevelLocals.md index ca8a717..97ef2b9 100644 --- a/api/global/type/LevelLocals.md +++ b/api/global/type/LevelLocals.md @@ -5,145 +5,145 @@ Most map-relative data is stored in this structure. ``` struct LevelLocals { - // Map data - array Lines; - array Sectors; - array Sides; + // Map data + array Lines; + array Sectors; + array Sides; - internal array SectorPortals; - readonly array Vertexes; + internal array SectorPortals; + readonly array Vertexes; - // Stats - int Found_Items; - int Found_Secrets; - int Killed_Monsters; - int Total_Items; - int Total_Monsters; - int Total_Secrets; + // Stats + int Found_Items; + int Found_Secrets; + int Killed_Monsters; + int Total_Items; + int Total_Monsters; + int Total_Secrets; - // Time - readonly int MapTime; - readonly int ParTime; - readonly int StartTime; - readonly int SuckTime; - readonly int Time; - readonly int TotalTime; + // Time + readonly int MapTime; + readonly int ParTime; + readonly int StartTime; + readonly int SuckTime; + readonly int Time; + readonly int TotalTime; - // Map sequencing - readonly int Cluster; - readonly int ClusterFlags; - readonly string LevelName; - readonly int LevelNum; - readonly string MapName; + // Map sequencing + readonly int Cluster; + readonly int ClusterFlags; + readonly string LevelName; + readonly int LevelNum; + readonly string MapName; - string NextMap; - string NextSecretMap; + string NextMap; + string NextSecretMap; - readonly int MapType; + readonly int MapType; - // Music - readonly string Music; - readonly int MusicOrder; + // Music + readonly string Music; + readonly int MusicOrder; - // Sky - readonly textureid SkyTexture1; - readonly textureid SkyTexture2; + // Sky + readonly textureid SkyTexture1; + readonly textureid SkyTexture2; - float SkySpeed1; - float SkySpeed2; + float SkySpeed1; + float SkySpeed2; - // Physics - play double AirControl; - play double AirFriction; - play int AirSupply; - play double Gravity; + // Physics + play double AirControl; + play double AirFriction; + play int AirSupply; + play double Gravity; - readonly int CompatFlags; - readonly int CompatFlags2; + readonly int CompatFlags; + readonly int CompatFlags2; - // State - bool AllMap; - deprecated("3.8") bool Frozen; + // State + bool AllMap; + deprecated("3.8") bool Frozen; - // Static info - name DeathSequence; + // Static info + name DeathSequence; - readonly bool ActOwnSpecial; - readonly bool AllowRespawn; - readonly bool CheckSwitchRange; - readonly string F1Pic; - readonly int FogDensity; - readonly bool Infinite_Flight; - readonly bool KeepFullInventory; - readonly bool MissilesActivateImpact; - readonly bool MonsterFallingDamage; - readonly bool MonstersTelefrag; - readonly bool NoInventoryBar; - readonly bool NoMonsters; - readonly bool No_Dlg_Freeze; - readonly int OutsideFogDensity; - readonly float PixelStretch; - readonly bool PolyGrind; - readonly bool RemoveItems; - readonly int SkyFog; - readonly bool SndSeqTotalCtrl; - readonly double TeamDamage; + readonly bool ActOwnSpecial; + readonly bool AllowRespawn; + readonly bool CheckSwitchRange; + readonly string F1Pic; + readonly int FogDensity; + readonly bool Infinite_Flight; + readonly bool KeepFullInventory; + readonly bool MissilesActivateImpact; + readonly bool MonsterFallingDamage; + readonly bool MonstersTelefrag; + readonly bool NoInventoryBar; + readonly bool NoMonsters; + readonly bool No_Dlg_Freeze; + readonly int OutsideFogDensity; + readonly float PixelStretch; + readonly bool PolyGrind; + readonly bool RemoveItems; + readonly int SkyFog; + readonly bool SndSeqTotalCtrl; + readonly double TeamDamage; - double GetUdmfFloat(int type, int index, name key); - int GetUdmfInt(int type, int index, name key); - string GetUdmfString(int type, int index, name key); + double GetUdmfFloat(int type, int index, name key); + int GetUdmfInt(int type, int index, name key); + string GetUdmfString(int type, int index, name key); - play int ExecuteSpecial(int special, Actor activator, Line linedef, bool lineside, int arg1 = 0, int arg2 = 0, int arg3 = 0, int arg4 = 0, int arg5 = 0); + play int ExecuteSpecial(int special, Actor activator, Line linedef, bool lineside, int arg1 = 0, int arg2 = 0, int arg3 = 0, int arg4 = 0, int arg5 = 0); - void ChangeSky(textureid sky1, textureid sky2); - string FormatMapName(int mapnamecolor); - string GetChecksum() const; - void SetInterMusic(string nextmap); - void StartIntermission(name type, int state) const; - string TimeFormatted(bool totals = false); + void ChangeSky(textureid sky1, textureid sky2); + string FormatMapName(int mapnamecolor); + string GetChecksum() const; + void SetInterMusic(string nextmap); + void StartIntermission(name type, int state) const; + string TimeFormatted(bool totals = false); - bool IsCrouchingAllowed() const; - bool IsFreelookAllowed() const; - bool IsJumpingAllowed() const; + bool IsCrouchingAllowed() const; + bool IsFreelookAllowed() const; + bool IsJumpingAllowed() const; - void GiveSecret(Actor activator, bool printmsg = true, bool playsound = true); - void StartSlideshow(name whichone = 'none'); - void WorldDone(); + void GiveSecret(Actor activator, bool printmsg = true, bool playsound = true); + void StartSlideshow(name whichone = 'none'); + void WorldDone(); - static void MakeScreenShot(); - static void MakeAutoSave(); + static void MakeScreenShot(); + static void MakeAutoSave(); - deprecated("3.8") static void RemoveAllBots(bool fromlist); + deprecated("3.8") static void RemoveAllBots(bool fromlist); - ui vector2 GetAutomapPosition(); + ui vector2 GetAutomapPosition(); - play SpotState GetSpotState(bool create = true); - int FindUniqueTid(int start = 0, int limit = 0); - uint GetSkyboxPortal(Actor actor); - void ReplaceTextures(string from, string to, int flags); - clearscope HealthGroup FindHealthGroup(int id); - vector3, int PickDeathmatchStart(); - vector3, int PickPlayerStart(int pnum, int flags = 0); - int IsFrozen() const; - void SetFrozen(bool on); + play SpotState GetSpotState(bool create = true); + int FindUniqueTid(int start = 0, int limit = 0); + uint GetSkyboxPortal(Actor actor); + void ReplaceTextures(string from, string to, int flags); + clearscope HealthGroup FindHealthGroup(int id); + vector3, int PickDeathmatchStart(); + vector3, int PickPlayerStart(int pnum, int flags = 0); + int IsFrozen() const; + void SetFrozen(bool on); - clearscope bool IsPointInLevel(vector3 p) const; - clearscope Sector PointInSector(vector2 p) const; - deprecated("3.8") static clearscope bool IsPointInMap(vector3 p); + clearscope bool IsPointInLevel(vector3 p) const; + clearscope Sector PointInSector(vector2 p) const; + deprecated("3.8") static clearscope bool IsPointInMap(vector3 p); - clearscope vector3 SphericalCoords(vector3 viewpoint, vector3 targetPos, vector2 viewAngles = (0, 0), bool absolute = false) const; - clearscope vector2 Vec2Diff(vector2 v1, vector2 v2) const; - clearscope vector2 Vec2Offset(vector2 pos, vector2 dir, bool absolute = false) const; - clearscope vector3 Vec2OffsetZ(vector2 pos, vector2 dir, double atz, bool absolute = false) const; - clearscope vector3 Vec3Diff(vector3 v1, vector3 v2) const; - clearscope vector3 Vec3Offset(vector3 pos, vector3 dir, bool absolute = false) const; + clearscope vector3 SphericalCoords(vector3 viewpoint, vector3 targetPos, vector2 viewAngles = (0, 0), bool absolute = false) const; + clearscope vector2 Vec2Diff(vector2 v1, vector2 v2) const; + clearscope vector2 Vec2Offset(vector2 pos, vector2 dir, bool absolute = false) const; + clearscope vector3 Vec2OffsetZ(vector2 pos, vector2 dir, double atz, bool absolute = false) const; + clearscope vector3 Vec3Diff(vector3 v1, vector3 v2) const; + clearscope vector3 Vec3Offset(vector3 pos, vector3 dir, bool absolute = false) const; - SectorTagIterator CreateSectorTagIterator(int tag, Line defline = null); - LineIDIterator CreateLineIDIterator(int tag); - ActorIterator CreateActorIterator(int tid, class type = "Actor"); + SectorTagIterator CreateSectorTagIterator(int tag, Line defline = null); + LineIDIterator CreateLineIDIterator(int tag); + ActorIterator CreateActorIterator(int tid, class type = "Actor"); - play bool CreateCeiling(Sector sec, int type, Line ln, double speed, double speed2, double height = 0, int crush = -1, int silent = 0, int change = 0, int crushmode = 0); - play bool CreateFloor(Sector sec, int type, Line ln, double speed, double speed2, double height = 0, int crush = -1, int silent = 0, int change = 0, bool crushmode = false, bool hereticlower = false); + play bool CreateCeiling(Sector sec, int type, Line ln, double speed, double speed2, double height = 0, int crush = -1, int silent = 0, int change = 0, int crushmode = 0); + play bool CreateFloor(Sector sec, int type, Line ln, double speed, double speed2, double height = 0, int crush = -1, int silent = 0, int change = 0, bool crushmode = false, bool hereticlower = false); } ``` diff --git a/api/inter/InterBackground.md b/api/inter/InterBackground.md index c25f6ae..fe5bd94 100644 --- a/api/inter/InterBackground.md +++ b/api/inter/InterBackground.md @@ -5,11 +5,11 @@ A class containing an animated intermission background. ``` class InterBackground : Object play { - static InterBackground Create(WBStartStruct wbs); + static InterBackground Create(WBStartStruct wbs); - virtual void DrawBackground(int curstate, bool drawsplat, bool pointeron); - virtual bool LoadBackground(bool isenterpic); - virtual void UpdateAnimatedBack(); + virtual void DrawBackground(int curstate, bool drawsplat, bool pointeron); + virtual bool LoadBackground(bool isenterpic); + virtual void UpdateAnimatedBack(); } ``` diff --git a/api/inter/PatchInfo.md b/api/inter/PatchInfo.md index 18d61a8..7bd1639 100644 --- a/api/inter/PatchInfo.md +++ b/api/inter/PatchInfo.md @@ -5,11 +5,11 @@ Either a patch or string depending on external configurations. ``` struct PatchInfo play { - int mColor; - Font mFont; - textureid mPatch; + int mColor; + Font mFont; + textureid mPatch; - void Init(GIFont gifont); + void Init(GIFont gifont); } ``` diff --git a/api/inter/StatusScreen.md b/api/inter/StatusScreen.md index cebf441..3c69555 100644 --- a/api/inter/StatusScreen.md +++ b/api/inter/StatusScreen.md @@ -15,91 +15,91 @@ These are provided as constants in `StatusScreen`. The starting stage is `STATCO ``` class StatusScreen : Object abstract play { - const NG_STATSY; - const SHOWNEXTLOCDELAY; - const SP_STATSX; - const SP_STATSY; - const SP_TIMEX; - const SP_TIMEY; - const TITLEY; + const NG_STATSY; + const SHOWNEXTLOCDELAY; + const SP_STATSX; + const SP_STATSY; + const SP_TIMEX; + const SP_TIMEY; + const TITLEY; - InterBackground BG; - WBPlayerStruct Plrs[MAXPLAYERS]; - WBStartStruct Wbs; + InterBackground BG; + WBPlayerStruct Plrs[MAXPLAYERS]; + WBStartStruct Wbs; - int AccelerateStage; - int BCnt; - int Cnt; - int Cnt_Deaths[MAXPLAYERS]; - int Cnt_Frags[MAXPLAYERS]; - int Cnt_Items[MAXPLAYERS]; - int Cnt_Kills[MAXPLAYERS]; - int Cnt_Par; - int Cnt_Pause; - int Cnt_Secret[MAXPLAYERS]; - int Cnt_Time; - int Cnt_Total_Time; - int CurState; - int DoFrags; - int Me; - int NG_State; - bool NoAutoStartMap; - bool PlayerReady[MAXPLAYERS]; - int Player_Deaths[MAXPLAYERS]; - bool Snl_PointerOn; - int SP_State; - float ShadowAlpha; - int Total_Deaths; - int Total_Frags; + int AccelerateStage; + int BCnt; + int Cnt; + int Cnt_Deaths[MAXPLAYERS]; + int Cnt_Frags[MAXPLAYERS]; + int Cnt_Items[MAXPLAYERS]; + int Cnt_Kills[MAXPLAYERS]; + int Cnt_Par; + int Cnt_Pause; + int Cnt_Secret[MAXPLAYERS]; + int Cnt_Time; + int Cnt_Total_Time; + int CurState; + int DoFrags; + int Me; + int NG_State; + bool NoAutoStartMap; + bool PlayerReady[MAXPLAYERS]; + int Player_Deaths[MAXPLAYERS]; + bool Snl_PointerOn; + int SP_State; + float ShadowAlpha; + int Total_Deaths; + int Total_Frags; - PatchInfo Entering; - PatchInfo Finished; - PatchInfo MapName; + PatchInfo Entering; + PatchInfo Finished; + PatchInfo MapName; - textureid Items; - textureid Kills; - textureid P_Secret; - textureid Par; - textureid Secret; - textureid Sucks; - textureid Timepic; + textureid Items; + textureid Kills; + textureid P_Secret; + textureid Par; + textureid Secret; + textureid Sucks; + textureid Timepic; - string LNameTexts[2]; + string LNameTexts[2]; - int DrawCharPatch(Font fnt, int charcode, int x, int y, int translation = Font.CR_UNTRANSLATED, bool nomove = false); - void DrawEL(); - int DrawLF(); - int DrawName(int y, textureid tex, string levelname); - int DrawNum(Font fnt, int x, int y, int n, int digits, bool leadingzeros = true, int translation = Font.CR_UNTRANSLATED); - int DrawPatchText(int y, PatchInfo pinfo, string stringname); - void DrawPercent(Font fnt, int x, int y, int p, int b, bool show_total = true, int color = Font.CR_UNTRANSLATED); - void DrawTime(int x, int y, int t, bool no_sucks = false); + int DrawCharPatch(Font fnt, int charcode, int x, int y, int translation = Font.CR_UNTRANSLATED, bool nomove = false); + void DrawEL(); + int DrawLF(); + int DrawName(int y, textureid tex, string levelname); + int DrawNum(Font fnt, int x, int y, int n, int digits, bool leadingzeros = true, int translation = Font.CR_UNTRANSLATED); + int DrawPatchText(int y, PatchInfo pinfo, string stringname); + void DrawPercent(Font fnt, int x, int y, int p, int b, bool show_total = true, int color = Font.CR_UNTRANSLATED); + void DrawTime(int x, int y, int t, bool no_sucks = false); - bool AutoSkip(); + bool AutoSkip(); - virtual void Drawer(); - virtual void End(); - virtual void Start(WBStartStruct wbs_); - virtual void StartMusic(); - virtual void Ticker(); + virtual void Drawer(); + virtual void End(); + virtual void Start(WBStartStruct wbs_); + virtual void StartMusic(); + virtual void Ticker(); - protected virtual void DrawNoState(); - protected virtual void DrawShowNextLoc(); - protected virtual void DrawStats(); - protected virtual void InitNoState(); - protected virtual void InitShowNextLoc(); - protected virtual void InitStats(); - protected virtual void UpdateNoState(); - protected virtual void UpdateShowNextLoc(); - protected virtual void UpdateStats(); + protected virtual void DrawNoState(); + protected virtual void DrawShowNextLoc(); + protected virtual void DrawStats(); + protected virtual void InitNoState(); + protected virtual void InitShowNextLoc(); + protected virtual void InitStats(); + protected virtual void UpdateNoState(); + protected virtual void UpdateShowNextLoc(); + protected virtual void UpdateStats(); - protected void CheckForAccelerate(); - protected int FragSum(int playernum); + protected void CheckForAccelerate(); + protected int FragSum(int playernum); - static int, int, int GetPlayerWidths(); - static color GetRowColor(PlayerInfo player, bool highlight); - static void GetSortedPlayers(in out array sorted, bool teamplay); - static void PlaySound(sound snd); + static int, int, int GetPlayerWidths(); + static color GetRowColor(PlayerInfo player, bool highlight); + static void GetSortedPlayers(in out array sorted, bool teamplay); + static void PlaySound(sound snd); } ``` diff --git a/api/inter/WBPlayerStruct.md b/api/inter/WBPlayerStruct.md index 15bea2d..4fbddb6 100644 --- a/api/inter/WBPlayerStruct.md +++ b/api/inter/WBPlayerStruct.md @@ -5,13 +5,13 @@ Information for each individual player for a `StatusScreen`. ``` struct WBPlayerStruct { - int SItems; - int SKills; - int SSecret; - int STime; + int SItems; + int SKills; + int SSecret; + int STime; - int FragCount; - int Frags[MAXPLAYERS]; + int FragCount; + int Frags[MAXPLAYERS]; } ``` diff --git a/api/inter/WBStartStruct.md b/api/inter/WBStartStruct.md index c98739c..41ecd32 100644 --- a/api/inter/WBStartStruct.md +++ b/api/inter/WBStartStruct.md @@ -5,27 +5,27 @@ Information passed into the `StatusScreen` class when an intermission starts. ``` struct WBStartStruct { - WBPlayerStruct Plyr[MAXPLAYERS]; - int PNum; + WBPlayerStruct Plyr[MAXPLAYERS]; + int PNum; - int Finished_Ep; - int Next_Ep; + int Finished_Ep; + int Next_Ep; - string Current; - string Next; - string NextName; + string Current; + string Next; + string NextName; - textureid LName0; - textureid LName1; + textureid LName0; + textureid LName1; - int MaxFrags; - int MaxItems; - int MaxKills; - int MaxSecret; + int MaxFrags; + int MaxItems; + int MaxKills; + int MaxSecret; - int ParTime; - int SuckTime; - int TotalTime; + int ParTime; + int SuckTime; + int TotalTime; } ``` diff --git a/api/level/FColorMap.md b/api/level/FColorMap.md index a3355fc..de87e99 100644 --- a/api/level/FColorMap.md +++ b/api/level/FColorMap.md @@ -5,10 +5,10 @@ Describes the coloring of a sector. ``` struct FColorMap { - uint8 BlendFactor; - uint8 Desaturation; - color FadeColor; - color LightColor; + uint8 BlendFactor; + uint8 Desaturation; + color FadeColor; + color LightColor; } ``` diff --git a/api/level/Line.md b/api/level/Line.md index 4f826e0..04ffc2f 100644 --- a/api/level/Line.md +++ b/api/level/Line.md @@ -5,42 +5,42 @@ Also known as a "linedef." A line segment with two sides and two vertices. ``` struct Line play { - readonly Sector BackSector, FrontSector; - readonly double BBox[4]; - readonly vector2 Delta; - readonly Side Sidedef[2]; - readonly Vertex V1, V2; + readonly Sector BackSector, FrontSector; + readonly double BBox[4]; + readonly vector2 Delta; + readonly Side Sidedef[2]; + readonly Vertex V1, V2; - readonly uint PortalIndex; - readonly uint PortalTransferred; + readonly uint PortalIndex; + readonly uint PortalTransferred; - readonly int Health; - readonly int HealthGroup; + readonly int Health; + readonly int HealthGroup; - double Alpha; - uint Flags; - int ValidCount; + double Alpha; + uint Flags; + int ValidCount; - uint Activation; - int Args[5]; - int LockNumber; - int Special; + uint Activation; + int Args[5]; + int LockNumber; + int Special; - int Index(); + int Index(); - bool Activate(Actor activator, int side, int type); - bool RemoteActivate(Actor activator, int side, int type, vector3 pos); + bool Activate(Actor activator, int side, int type); + bool RemoteActivate(Actor activator, int side, int type, vector3 pos); - Line GetPortalDestination(); - bool IsLinePortal(); - bool IsVisualPortal(); + Line GetPortalDestination(); + bool IsLinePortal(); + bool IsVisualPortal(); - clearscope int GetHealth(); - void SetHealth(int newhealth); + clearscope int GetHealth(); + void SetHealth(int newhealth); - double GetUdmfFloat(name nm); - int GetUdmfInt(name nm); - string GetUdmfString(name nm); + double GetUdmfFloat(name nm); + int GetUdmfInt(name nm); + string GetUdmfString(name nm); } ``` diff --git a/api/level/LineIdIterator.md b/api/level/LineIdIterator.md index 63e9fc0..0e94997 100644 --- a/api/level/LineIdIterator.md +++ b/api/level/LineIdIterator.md @@ -5,9 +5,9 @@ Iterates over line indices with a specified tag. ``` class LineIdIterator : Object { - static LineIdIterator Create(int tag); + static LineIdIterator Create(int tag); - int Next(); + int Next(); } ``` diff --git a/api/level/SecPlane.md b/api/level/SecPlane.md index a96c4a8..fc3fc5e 100644 --- a/api/level/SecPlane.md +++ b/api/level/SecPlane.md @@ -5,20 +5,20 @@ TODO ``` struct SecPlane play { - double D; - double NegiC; - vector3 Normal; + double D; + double NegiC; + vector3 Normal; - void ChangeHeight(double hdiff); - double GetChangedHeight(double hdiff) const; - double HeightDiff(double oldd, double newd = 0.0) const; - bool IsEqual(SecPlane other) const; - bool IsSlope() const; - int PointOnSide(vector3 pos) const; - double PointToDist(vector2 xy, double z) const; - double ZAtPointDist(vector2 v, double dist) const; + void ChangeHeight(double hdiff); + double GetChangedHeight(double hdiff) const; + double HeightDiff(double oldd, double newd = 0.0) const; + bool IsEqual(SecPlane other) const; + bool IsSlope() const; + int PointOnSide(vector3 pos) const; + double PointToDist(vector2 xy, double z) const; + double ZAtPointDist(vector2 v, double dist) const; - clearscope double ZAtPoint(vector2 v) const; + clearscope double ZAtPoint(vector2 v) const; } ``` diff --git a/api/level/SecSpecial.md b/api/level/SecSpecial.md index e9be430..46c1b8a 100644 --- a/api/level/SecSpecial.md +++ b/api/level/SecSpecial.md @@ -5,12 +5,12 @@ TODO ``` struct SecSpecial play { - int DamageAmount; - int16 DamageInterval; - name DamageType; - int Flags; - int16 LeakyDamage; - int16 Special; + int DamageAmount; + int16 DamageInterval; + name DamageType; + int Flags; + int16 LeakyDamage; + int16 Special; } ``` diff --git a/api/level/Sector.md b/api/level/Sector.md index 71cb644..739c578 100644 --- a/api/level/Sector.md +++ b/api/level/Sector.md @@ -5,189 +5,189 @@ TODO ``` struct Sector play { - readonly color[5] AdditiveColors; - readonly FColormap ColorMap; - readonly color[5] SpecialColors; + readonly color[5] AdditiveColors; + readonly FColormap ColorMap; + readonly color[5] SpecialColors; - Actor SoundTarget; + Actor SoundTarget; - int16 LightLevel; - int16 SeqType; - int16 Special; + int16 LightLevel; + int16 SeqType; + int16 Special; - name SeqName; - int Sky; + name SeqName; + int Sky; - readonly vector2 CenterSpot; + readonly vector2 CenterSpot; - Actor ThingList; - int ValidCount; + Actor ThingList; + int ValidCount; - double Friction; - double MoveFactor; - int TerrainNum[2]; + double Friction; + double MoveFactor; + int TerrainNum[2]; - SectorEffect CeilingData; - SectorEffect FloorData; - SectorEffect LightingData; + SectorEffect CeilingData; + SectorEffect FloorData; + SectorEffect LightingData; - int NextSec; - int PrevSec; - uint8 SoundTraversed; - int8 StairLock; + int NextSec; + int PrevSec; + uint8 SoundTraversed; + int8 StairLock; - readonly array Lines; + readonly array Lines; - readonly SecPlane CeilingPlane; - readonly SecPlane FloorPlane; + readonly SecPlane CeilingPlane; + readonly SecPlane FloorPlane; - readonly Sector HeightSec; + readonly Sector HeightSec; - uint BottomMap; - uint MidMap; - uint TopMap; + uint BottomMap; + uint MidMap; + uint TopMap; - int DamageAmount; - int16 DamageInterval; - name DamageType; - double Gravity; - int16 LeakyDamage; + int DamageAmount; + int16 DamageInterval; + name DamageType; + double Gravity; + int16 LeakyDamage; - readonly uint16 ZoneNumber; + readonly uint16 ZoneNumber; - readonly int HealthCeiling; - readonly int HealthCeilingGroup; - readonly int HealthFloor; - readonly int HealthFloorGroup; + readonly int HealthCeiling; + readonly int HealthCeilingGroup; + readonly int HealthFloor; + readonly int HealthFloorGroup; - uint Flags; - uint16 MoreFlags; + uint Flags; + uint16 MoreFlags; - SectorAction SecActTarget; + SectorAction SecActTarget; - readonly int PortalGroup; - internal uint[2] Portals; + readonly int PortalGroup; + internal uint[2] Portals; - readonly int SectorNum; + readonly int SectorNum; - int Index(); + int Index(); - double, Sector, F3DFloor NextHighestCeilingAt(double x, double y, double bottomz, double topz, int flags = 0); - double, Sector, F3DFloor NextLowestFloorAt(double x, double y, double z, int flags = 0, double steph = 0); + double, Sector, F3DFloor NextHighestCeilingAt(double x, double y, double bottomz, double topz, int flags = 0); + double, Sector, F3DFloor NextLowestFloorAt(double x, double y, double z, int flags = 0, double steph = 0); - void RemoveForceField(); + void RemoveForceField(); - static clearscope Sector PointInSector(vector2 pt); + static clearscope Sector PointInSector(vector2 pt); - void CheckPortalPlane(int plane); - int GetCeilingLight(); - int GetFloorLight(); - Sector GetHeightSec(); - void GetSpecial(out SecSpecial spec); - int GetTerrain(int pos); - bool PlaneMoving(int pos); - void SetSpecial(SecSpecial spec); - void TransferSpecial(Sector model); + void CheckPortalPlane(int plane); + int GetCeilingLight(); + int GetFloorLight(); + Sector GetHeightSec(); + void GetSpecial(out SecSpecial spec); + int GetTerrain(int pos); + bool PlaneMoving(int pos); + void SetSpecial(SecSpecial spec); + void TransferSpecial(Sector model); - double, double GetFriction(int plane); - double, Sector HighestCeilingAt(vector2 a); - double, Sector LowestFloorAt(vector2 a); + double, double GetFriction(int plane); + double, Sector HighestCeilingAt(vector2 a); + double, Sector LowestFloorAt(vector2 a); - void AddXOffset(int pos, double o); - void AddYOffset(int pos, double o); - void ChangeFlags(int pos, int and, int or); - double GetAlpha(int pos); - double GetAngle(int pos, bool addbase = true); - int GetFlags(int pos); - color GetGlowColor(int pos); - double GetGlowHeight(int pos); - int GetPlaneLight(int pos); - int GetVisFlags(int pos); - double GetXOffset(int pos); - double GetXScale(int pos); - double GetYOffset(int pos, bool addbase = true); - double GetYScale(int pos); - void SetAdditiveColor(int pos, color cr); - void SetAlpha(int pos, double o); - void SetAngle(int pos, double o); - void SetBase(int pos, double y, double o); - void SetColor(color c, int desat = 0); - void SetFade(color c); - void SetFogDensity(int dens); - void SetGlowColor(int pos, color color); - void SetGlowHeight(int pos, double height); - void SetPlaneLight(int pos, int level); - void SetSpecialColor(int pos, color color); - void SetXOffset(int pos, double o); - void SetXScale(int pos, double o); - void SetYOffset(int pos, double o); - void SetYScale(int pos, double o); + void AddXOffset(int pos, double o); + void AddYOffset(int pos, double o); + void ChangeFlags(int pos, int and, int or); + double GetAlpha(int pos); + double GetAngle(int pos, bool addbase = true); + int GetFlags(int pos); + color GetGlowColor(int pos); + double GetGlowHeight(int pos); + int GetPlaneLight(int pos); + int GetVisFlags(int pos); + double GetXOffset(int pos); + double GetXScale(int pos); + double GetYOffset(int pos, bool addbase = true); + double GetYScale(int pos); + void SetAdditiveColor(int pos, color cr); + void SetAlpha(int pos, double o); + void SetAngle(int pos, double o); + void SetBase(int pos, double y, double o); + void SetColor(color c, int desat = 0); + void SetFade(color c); + void SetFogDensity(int dens); + void SetGlowColor(int pos, color color); + void SetGlowHeight(int pos, double height); + void SetPlaneLight(int pos, int level); + void SetSpecialColor(int pos, color color); + void SetXOffset(int pos, double o); + void SetXScale(int pos, double o); + void SetYOffset(int pos, double o); + void SetYScale(int pos, double o); - void AdjustFloorClip(); - void ChangeLightLevel(int newval); - int GetLightLevel(); - double GetPlaneTexZ(int pos); - textureid GetTexture(int pos); - bool IsLinked(Sector other, bool ceiling); - void SetLightLevel(int newval); - void SetPlaneTexZ(int pos, double val, bool dirtify = false); - void SetTexture(int pos, textureid tex, bool floorclip = true); + void AdjustFloorClip(); + void ChangeLightLevel(int newval); + int GetLightLevel(); + double GetPlaneTexZ(int pos); + textureid GetTexture(int pos); + bool IsLinked(Sector other, bool ceiling); + void SetLightLevel(int newval); + void SetPlaneTexZ(int pos, double val, bool dirtify = false); + void SetTexture(int pos, textureid tex, bool floorclip = true); - double CenterCeiling(); - double CenterFloor(); - void ClearPortal(int plane); - int GetOppositePortalGroup(int plane); - vector2 GetPortalDisplacement(int plane); - double GetPortalPlaneZ(int plane); - int GetPortalType(int plane); - bool PortalBlocksMovement(int plane); - bool PortalBlocksSight(int plane); - bool PortalBlocksSound(int plane); - bool PortalBlocksView(int plane); - bool PortalIsLinked(int plane); - bool TriggerSectorActions(Actor thing, int activation); + double CenterCeiling(); + double CenterFloor(); + void ClearPortal(int plane); + int GetOppositePortalGroup(int plane); + vector2 GetPortalDisplacement(int plane); + double GetPortalPlaneZ(int plane); + int GetPortalType(int plane); + bool PortalBlocksMovement(int plane); + bool PortalBlocksSight(int plane); + bool PortalBlocksSound(int plane); + bool PortalBlocksView(int plane); + bool PortalIsLinked(int plane); + bool TriggerSectorActions(Actor thing, int activation); - int MoveCeiling(double speed, double dest, int crush, int direction, bool hexencrush); - int MoveFloor(double speed, double dest, int crush, int direction, bool hexencrush, bool instant = false); + int MoveCeiling(double speed, double dest, int crush, int direction, bool hexencrush); + int MoveFloor(double speed, double dest, int crush, int direction, bool hexencrush, bool instant = false); - Sector NextSpecialSector(int type, Sector prev); + Sector NextSpecialSector(int type, Sector prev); - double, Vertex FindHighestCeilingSurrounding(); - double, Vertex FindHighestFloorPoint(); - double, Vertex FindHighestFloorSurrounding(); - double, Vertex FindLowestCeilingPoint(); - double, Vertex FindLowestCeilingSurrounding(); - double, Vertex FindLowestFloorSurrounding(); - double, Vertex FindNextHighestCeiling(); - double, Vertex FindNextHighestFloor(); - double, Vertex FindNextLowestCeiling(); - double, Vertex FindNextLowestFloor(); + double, Vertex FindHighestCeilingSurrounding(); + double, Vertex FindHighestFloorPoint(); + double, Vertex FindHighestFloorSurrounding(); + double, Vertex FindLowestCeilingPoint(); + double, Vertex FindLowestCeilingSurrounding(); + double, Vertex FindLowestFloorSurrounding(); + double, Vertex FindNextHighestCeiling(); + double, Vertex FindNextHighestFloor(); + double, Vertex FindNextLowestCeiling(); + double, Vertex FindNextLowestFloor(); - int FindMinSurroundingLight(int max); - Sector FindModelCeilingSector(double floordestheight); - Sector FindModelFloorSector(double floordestheight); - double FindShortestTextureAround(); - double FindShortestUpperAround(); + int FindMinSurroundingLight(int max); + Sector FindModelCeilingSector(double floordestheight); + Sector FindModelFloorSector(double floordestheight); + double FindShortestTextureAround(); + double FindShortestUpperAround(); - void SetEnvironment(string env); - void SetEnvironmentID(int envnum); + void SetEnvironment(string env); + void SetEnvironmentID(int envnum); - SeqNode CheckSoundSequence(int chan); - bool IsMakingLoopingSound(); - SeqNode StartSoundSequence(int chan, name seqname, int modenum); - SeqNode StartSoundSequenceID(int chan, int sequence, int type, int modenum, bool nostop = false); - void StopSoundSequence(int chan); + SeqNode CheckSoundSequence(int chan); + bool IsMakingLoopingSound(); + SeqNode StartSoundSequence(int chan, name seqname, int modenum); + SeqNode StartSoundSequenceID(int chan, int sequence, int type, int modenum, bool nostop = false); + void StopSoundSequence(int chan); - void ClearSecret(); - bool IsSecret(); - bool WasSecret(); + void ClearSecret(); + bool IsSecret(); + bool WasSecret(); - clearscope int GetHealth(SectorPart part); - void SetHealth(SectorPart part, int newhealth); + clearscope int GetHealth(SectorPart part); + void SetHealth(SectorPart part, int newhealth); - double GetUdmfFloat(name nm); - int GetUdmfInt(name nm); - string GetUdmfString(name nm); + double GetUdmfFloat(name nm); + int GetUdmfInt(name nm); + string GetUdmfString(name nm); } ``` diff --git a/api/level/SectorEffect.md b/api/level/SectorEffect.md index e3e8b06..6193d07 100644 --- a/api/level/SectorEffect.md +++ b/api/level/SectorEffect.md @@ -5,9 +5,9 @@ A thinker which is attached to a sector and effects it in some way. ``` class SectorEffect : Thinker { - protected Sector m_Sector; + protected Sector m_Sector; - Sector GetSector(); + Sector GetSector(); } ``` diff --git a/api/level/SectorTagIterator.md b/api/level/SectorTagIterator.md index 52282fa..fc53fff 100644 --- a/api/level/SectorTagIterator.md +++ b/api/level/SectorTagIterator.md @@ -5,10 +5,10 @@ Iterates over sector indices with a specified tag. ``` class SectorTagIterator : Object { - static SectorTagIterator Create(int tag, Line defline = null); + static SectorTagIterator Create(int tag, Line defline = null); - int Next(); - int NextCompat(bool compat, int secnum); + int Next(); + int NextCompat(bool compat, int secnum); } ``` diff --git a/api/level/Side.md b/api/level/Side.md index b1ee46f..d01e4c2 100644 --- a/api/level/Side.md +++ b/api/level/Side.md @@ -15,49 +15,49 @@ The three portions of a sidedef can be referred to with: ``` struct Side play { - readonly Line Linedef; - readonly Sector Sector; + readonly Line Linedef; + readonly Sector Sector; - uint8 Flags; - int16 Light; + uint8 Flags; + int16 Light; - int Index(); + int Index(); - clearscope Vertex V1(); - clearscope Vertex V2(); + clearscope Vertex V1(); + clearscope Vertex V2(); - textureid GetTexture(int which); + textureid GetTexture(int which); - double GetTextureXOffset(int which); - double GetTextureYOffset(int which); + double GetTextureXOffset(int which); + double GetTextureYOffset(int which); - double GetTextureXScale(int which); - double GetTextureYScale(int which); + double GetTextureXScale(int which); + double GetTextureYScale(int which); - void SetTexture(int which, textureid tex); + void SetTexture(int which, textureid tex); - void SetTextureXOffset(int which, double offset); - void SetTextureYOffset(int which, double offset); + void SetTextureXOffset(int which, double offset); + void SetTextureYOffset(int which, double offset); - void SetTextureXScale(int which, double scale); - void SetTextureYScale(int which, double scale); + void SetTextureXScale(int which, double scale); + void SetTextureYScale(int which, double scale); - void AddTextureXOffset(int which, double delta); - void AddTextureYOffset(int which, double delta); + void AddTextureXOffset(int which, double delta); + void AddTextureYOffset(int which, double delta); - void MultiplyTextureXScale(int which, double delta); - void MultiplyTextureYScale(int which, double delta); + void MultiplyTextureXScale(int which, double delta); + void MultiplyTextureYScale(int which, double delta); - void SetSpecialColor(int tier, int position, color cr); + void SetSpecialColor(int tier, int position, color cr); - color GetAdditiveColor(int tier); - void SetAdditiveColor(int tier, color cr); + color GetAdditiveColor(int tier); + void SetAdditiveColor(int tier, color cr); - void EnableAdditiveColor(int tier, bool enable); + void EnableAdditiveColor(int tier, bool enable); - double GetUdmfFloat(name nm); - int GetUdmfInt(name nm); - string GetUdmfString(name nm); + double GetUdmfFloat(name nm); + int GetUdmfInt(name nm); + string GetUdmfString(name nm); } ``` diff --git a/api/level/Vertex.md b/api/level/Vertex.md index 2372ad3..83613bc 100644 --- a/api/level/Vertex.md +++ b/api/level/Vertex.md @@ -5,9 +5,9 @@ A point in world space. ``` struct Vertex play { - readonly vector2 P; + readonly vector2 P; - int Index(); + int Index(); } ``` diff --git a/api/player/PlayerClass.md b/api/player/PlayerClass.md index 1f2d3e9..9ab29b0 100644 --- a/api/player/PlayerClass.md +++ b/api/player/PlayerClass.md @@ -5,13 +5,13 @@ A player class as defined in either `MAPINFO`/GameInfo or `KEYCONF`. ``` struct PlayerClass { - uint Flags; - array Skins; - class Type; + uint Flags; + array Skins; + class Type; - bool CheckSkin(int skin); - void EnumColorsets(out array data); - name GetColorsetName(int setnum); + bool CheckSkin(int skin); + void EnumColorsets(out array data); + name GetColorsetName(int setnum); } ``` diff --git a/api/player/PlayerSkin.md b/api/player/PlayerSkin.md index 9a8d73f..5e3be4a 100644 --- a/api/player/PlayerSkin.md +++ b/api/player/PlayerSkin.md @@ -5,16 +5,16 @@ A player skin as defined in `SKININFO` or `S_SKIN`. ``` struct PlayerSkin { - int CrouchSprite; - string Face; - uint8 Gender; - int NameSpc; - bool OtherGame; - uint8 Range0End; - uint8 Range0Start; - vector2 Scale; - string SkinName; - int Sprite; + int CrouchSprite; + string Face; + uint8 Gender; + int NameSpc; + bool OtherGame; + uint8 Range0End; + uint8 Range0Start; + vector2 Scale; + string SkinName; + int Sprite; } ``` diff --git a/api/player/Team.md b/api/player/Team.md index 77c0f17..7473a7c 100644 --- a/api/player/Team.md +++ b/api/player/Team.md @@ -5,10 +5,10 @@ A team as defined in `TEAMINFO`. ``` struct Team { - const Max; - const NoTeam; + const Max; + const NoTeam; - string mName; + string mName; } ``` diff --git a/api/sound/SeqNode.md b/api/sound/SeqNode.md index 4c45057..bac4078 100644 --- a/api/sound/SeqNode.md +++ b/api/sound/SeqNode.md @@ -5,13 +5,13 @@ A sound sequence (`SNDSEQ`) node. ``` class SeqNode : Object { - static name GetSequenceSlot(int sequence, int type); - static void MarkPrecacheSounds(int sequence, int type); + static name GetSequenceSlot(int sequence, int type); + static void MarkPrecacheSounds(int sequence, int type); - void AddChoice(int seqnum, int type); - bool AreModesSame(name n, int mode1); - bool AreModesSameID(int sequence, int type, int mode1); - name GetSequenceName(); + void AddChoice(int seqnum, int type); + bool AreModesSame(name n, int mode1); + bool AreModesSameID(int sequence, int type, int mode1); + name GetSequenceName(); } ``` diff --git a/api/weapon/PSprite.md b/api/weapon/PSprite.md index 99168cf..36540bb 100644 --- a/api/weapon/PSprite.md +++ b/api/weapon/PSprite.md @@ -19,31 +19,31 @@ The predefined layers are: ``` class PSprite : Object play { - readonly State CurState; - readonly int ID; - readonly PSprite Next; - readonly PlayerInfo Owner; + readonly State CurState; + readonly int ID; + readonly PSprite Next; + readonly PlayerInfo Owner; - double Alpha; - Actor Caller; - bool FirstTic; - int Frame; - double OldX; - double OldY; - bool ProcessPending; - spriteid Sprite; - int Tics; - double X; - double Y; + double Alpha; + Actor Caller; + bool FirstTic; + int Frame; + double OldX; + double OldY; + bool ProcessPending; + spriteid Sprite; + int Tics; + double X; + double Y; - bool bAddBob; - bool bAddWeapon; - bool bCVarFast; - bool bFlip; - bool bPowDouble; + bool bAddBob; + bool bAddWeapon; + bool bCVarFast; + bool bFlip; + bool bPowDouble; - void SetState(State newstate, bool pending = false); - void Tick(); + void SetState(State newstate, bool pending = false); + void Tick(); } ```