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
|
||||
{
|
||||
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));
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -9,24 +9,24 @@ variant of `TArray` existing in the engine.
|
|||
```
|
||||
struct Array<Type>
|
||||
{
|
||||
uint Max() const;
|
||||
uint Size() const;
|
||||
uint Max() const;
|
||||
uint Size() const;
|
||||
|
||||
void Append(array<Type> other);
|
||||
void Copy(array<Type> other);
|
||||
void Move(array<Type> other);
|
||||
void Append(array<Type> other);
|
||||
void Copy(array<Type> other);
|
||||
void Move(array<Type> 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();
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ range 0 to 255, inclusive.
|
|||
```
|
||||
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]
|
||||
{
|
||||
uint Size() const;
|
||||
uint Size() const;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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<string> 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<string> 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;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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, ...);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@ A font as defined in `MAPINFO`/GameInfo.
|
|||
```
|
||||
struct GIFont
|
||||
{
|
||||
name Color;
|
||||
name FontName;
|
||||
name Color;
|
||||
name FontName;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@ overridden on this type.
|
|||
```
|
||||
class EventHandler : StaticEventHandler
|
||||
{
|
||||
clearscope static StaticEventHandler Find(class<StaticEventHandler> type);
|
||||
clearscope static void SendNetworkEvent(string name, int arg1 = 0, int arg2 = 0, int arg3 = 0);
|
||||
clearscope static StaticEventHandler Find(class<StaticEventHandler> type);
|
||||
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
|
||||
{
|
||||
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;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ this event to change the result of replacement checking.
|
|||
```
|
||||
struct ReplaceEvent
|
||||
{
|
||||
readonly class<Actor> Replacee;
|
||||
class<Actor> Replacement;
|
||||
bool IsFinal;
|
||||
readonly class<Actor> Replacee;
|
||||
class<Actor> Replacement;
|
||||
bool IsFinal;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -17,50 +17,50 @@ documentation.
|
|||
```
|
||||
class StaticEventHandler : Object play
|
||||
{
|
||||
clearscope static StaticEventHandler Find(class<StaticEventHandler> type);
|
||||
clearscope static StaticEventHandler Find(class<StaticEventHandler> 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;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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<name> 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<name> InfoPages;
|
||||
bool IntermissionCounter;
|
||||
bool NoRandomPlayerClass;
|
||||
double NormForwardMove[2];
|
||||
double NormSideMove[2];
|
||||
double TeleFogHeight;
|
||||
string mBackButton;
|
||||
name mSliderColor;
|
||||
GIFont mStatScreenEnteringFont;
|
||||
GIFont mStatScreenFinishedFont;
|
||||
GIFont mStatScreenMapNameFont;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -5,145 +5,145 @@ Most map-relative data is stored in this structure.
|
|||
```
|
||||
struct LevelLocals
|
||||
{
|
||||
// Map data
|
||||
array<Line> Lines;
|
||||
array<Sector> Sectors;
|
||||
array<Side> Sides;
|
||||
// Map data
|
||||
array<Line> Lines;
|
||||
array<Sector> Sectors;
|
||||
array<Side> Sides;
|
||||
|
||||
internal array<SectorPortal> SectorPortals;
|
||||
readonly array<Vertex> Vertexes;
|
||||
internal array<SectorPortal> SectorPortals;
|
||||
readonly array<Vertex> 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<Actor> type = "Actor");
|
||||
SectorTagIterator CreateSectorTagIterator(int tag, Line defline = null);
|
||||
LineIDIterator CreateLineIDIterator(int tag);
|
||||
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 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);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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<int> 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<int> sorted, bool teamplay);
|
||||
static void PlaySound(sound snd);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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<Line> Lines;
|
||||
readonly array<Line> 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);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@ A point in world space.
|
|||
```
|
||||
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
|
||||
{
|
||||
uint Flags;
|
||||
array<int> Skins;
|
||||
class<Actor> Type;
|
||||
uint Flags;
|
||||
array<int> Skins;
|
||||
class<Actor> Type;
|
||||
|
||||
bool CheckSkin(int skin);
|
||||
void EnumColorsets(out array<int> data);
|
||||
name GetColorsetName(int setnum);
|
||||
bool CheckSkin(int skin);
|
||||
void EnumColorsets(out array<int> data);
|
||||
name GetColorsetName(int setnum);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -5,10 +5,10 @@ A team as defined in `TEAMINFO`.
|
|||
```
|
||||
struct Team
|
||||
{
|
||||
const Max;
|
||||
const NoTeam;
|
||||
const Max;
|
||||
const NoTeam;
|
||||
|
||||
string mName;
|
||||
string mName;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue