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