Skip to content

Commit 62f0107

Browse files
committed
tabs, not spaces
1 parent c88d002 commit 62f0107

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+816
-816
lines changed

api/actor/State.md

+23-23
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,29 @@ as it is merely a look into the global constant state table.
77
```
88
struct State
99
{
10-
readonly uint8 Frame;
11-
readonly State NextState;
12-
readonly int Sprite;
13-
readonly int16 Tics;
14-
15-
readonly int Misc1;
16-
readonly int Misc2;
17-
readonly uint16 TicRange;
18-
readonly uint8 UseFlags;
19-
20-
readonly bool bCanRaise;
21-
readonly bool bDeHackEd;
22-
readonly bool bFast;
23-
readonly bool bFullBright;
24-
readonly bool bNoDelay;
25-
readonly bool bSameFrame;
26-
readonly bool bSlow;
27-
28-
int DistanceTo(State other);
29-
bool InStateSequence(State base);
30-
bool ValidateSpriteFrame();
31-
32-
textureid, bool, vector2 GetSpriteTexture(int rotation, int skin = 0, vector2 scale = (0, 0));
10+
readonly uint8 Frame;
11+
readonly State NextState;
12+
readonly int Sprite;
13+
readonly int16 Tics;
14+
15+
readonly int Misc1;
16+
readonly int Misc2;
17+
readonly uint16 TicRange;
18+
readonly uint8 UseFlags;
19+
20+
readonly bool bCanRaise;
21+
readonly bool bDeHackEd;
22+
readonly bool bFast;
23+
readonly bool bFullBright;
24+
readonly bool bNoDelay;
25+
readonly bool bSameFrame;
26+
readonly bool bSlow;
27+
28+
int DistanceTo(State other);
29+
bool InStateSequence(State base);
30+
bool ValidateSpriteFrame();
31+
32+
textureid, bool, vector2 GetSpriteTexture(int rotation, int skin = 0, vector2 scale = (0, 0));
3333
}
3434
```
3535

api/base/Array.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ variant of `TArray` existing in the engine.
99
```
1010
struct Array<Type>
1111
{
12-
uint Max() const;
13-
uint Size() const;
14-
15-
void Append(array<Type> other);
16-
void Copy(array<Type> other);
17-
void Move(array<Type> other);
18-
19-
void Clear();
20-
void Delete(uint index, int deletecount = 1);
21-
bool Pop();
22-
23-
uint Find(Type item) const;
24-
void Grow(uint amount);
25-
void Insert(uint index, Type item);
26-
uint Push(Type item);
27-
uint Reserve(uint amount);
28-
void Resize(uint amount);
29-
void ShrinkToFit();
12+
uint Max() const;
13+
uint Size() const;
14+
15+
void Append(array<Type> other);
16+
void Copy(array<Type> other);
17+
void Move(array<Type> other);
18+
19+
void Clear();
20+
void Delete(uint index, int deletecount = 1);
21+
bool Pop();
22+
23+
uint Find(Type item) const;
24+
void Grow(uint amount);
25+
void Insert(uint index, Type item);
26+
uint Push(Type item);
27+
uint Reserve(uint amount);
28+
void Resize(uint amount);
29+
void ShrinkToFit();
3030
}
3131
```
3232

api/base/CVar.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ as they aren't "strongly" typed.
99
```
1010
struct CVar
1111
{
12-
static CVar FindCVar(name n);
13-
static CVar GetCVar(name n, PlayerInfo player = null);
12+
static CVar FindCVar(name n);
13+
static CVar GetCVar(name n, PlayerInfo player = null);
1414
15-
bool GetBool();
16-
double GetFloat();
17-
int GetInt();
18-
string GetString();
15+
bool GetBool();
16+
double GetFloat();
17+
int GetInt();
18+
string GetString();
1919
20-
void SetBool(bool v);
21-
void SetFloat(double v);
22-
void SetInt(int v);
23-
void SetString(string v);
20+
void SetBool(bool v);
21+
void SetFloat(double v);
22+
void SetInt(int v);
23+
void SetString(string v);
2424
25-
int GetRealType();
26-
int ResetToDefault();
25+
int GetRealType();
26+
int ResetToDefault();
2727
}
2828
```
2929

api/base/Color.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ range 0 to 255, inclusive.
66
```
77
struct Color
88
{
9-
uint8 r, g, b, a;
9+
uint8 r, g, b, a;
1010
}
1111
```
1212

api/base/FixedArray.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Fixed-size arrays have a size method attached to them for convenience purposes.
55
```
66
struct Type[N]
77
{
8-
uint Size() const;
8+
uint Size() const;
99
}
1010
```
1111

api/base/Object.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ The base class of all `class` types.
55
```
66
class Object
77
{
8-
bool bDestroyed;
8+
bool bDestroyed;
99
10-
class GetClass();
11-
string GetClassName();
12-
class GetParentClass();
10+
class GetClass();
11+
string GetClassName();
12+
class GetParentClass();
1313
14-
virtualscope void Destroy();
14+
virtualscope void Destroy();
1515
16-
virtual virtualscope void OnDestroy();
16+
virtual virtualscope void OnDestroy();
1717
}
1818
```
1919

api/base/String.md

+22-22
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,28 @@ Strings have many methods attached to them for manipulating text.
55
```
66
struct String
77
{
8-
static vararg string Format(string format, ...);
9-
10-
vararg void AppendFormat(string format, ...);
11-
12-
string CharAt(int pos) const;
13-
int CharCodeAt(int pos) const;
14-
string Filter();
15-
int IndexOf(string substr, int startIndex = 0) const;
16-
string Left(int len) const;
17-
uint Length() const;
18-
string Mid(int pos = 0, int len = int.Max) const;
19-
void Remove(int index, int amount);
20-
void Replace(string pattern, string replacement);
21-
int RightIndexOf(string substr, int endIndex = int.Max) const;
22-
void Split(out array<string> tokens, string delimiter, EmptyTokenType keepEmpty = TOK_KEEPEMPTY) const;
23-
double ToDouble() const;
24-
int ToInt(int base = 0) const;
25-
void ToLower();
26-
void ToUpper();
27-
void Truncate(int newlen);
28-
29-
deprecated("3.5.1") int LastIndexOf(string substr, int endIndex = int.Max) const;
8+
static vararg string Format(string format, ...);
9+
10+
vararg void AppendFormat(string format, ...);
11+
12+
string CharAt(int pos) const;
13+
int CharCodeAt(int pos) const;
14+
string Filter();
15+
int IndexOf(string substr, int startIndex = 0) const;
16+
string Left(int len) const;
17+
uint Length() const;
18+
string Mid(int pos = 0, int len = int.Max) const;
19+
void Remove(int index, int amount);
20+
void Replace(string pattern, string replacement);
21+
int RightIndexOf(string substr, int endIndex = int.Max) const;
22+
void Split(out array<string> tokens, string delimiter, EmptyTokenType keepEmpty = TOK_KEEPEMPTY) const;
23+
double ToDouble() const;
24+
int ToInt(int base = 0) const;
25+
void ToLower();
26+
void ToUpper();
27+
void Truncate(int newlen);
28+
29+
deprecated("3.5.1") int LastIndexOf(string substr, int endIndex = int.Max) const;
3030
}
3131
```
3232

api/base/StringTable.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The localized string table as defined by `LANGUAGE`.
55
```
66
struct StringTable
77
{
8-
static string Localize(string val, bool prefixed = true);
8+
static string Localize(string val, bool prefixed = true);
99
}
1010
```
1111

api/base/Thinker.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ Thinkers which do think and are mandatory to many checks:
5252
```
5353
class Thinker : Object play
5454
{
55-
const TICRATE;
55+
const TICRATE;
5656
57-
LevelLocals Level;
57+
LevelLocals Level;
5858
59-
void ChangeStatNum(int stat);
59+
void ChangeStatNum(int stat);
6060
61-
virtual void PostBeginPlay();
62-
virtual void Tick();
61+
virtual void PostBeginPlay();
62+
virtual void Tick();
6363
64-
static clearscope int Tics2Seconds(int tics);
64+
static clearscope int Tics2Seconds(int tics);
6565
}
6666
```
6767

api/base/Vector.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ operator.
66
```
77
struct Vector2
88
{
9-
double x, y;
9+
double x, y;
1010
11-
double Length() const;
12-
vector2 Unit() const;
11+
double Length() const;
12+
vector2 Unit() const;
1313
}
1414
1515
struct Vector3
1616
{
17-
double x, y, z;
18-
vector2 xy;
17+
double x, y, z;
18+
vector2 xy;
1919
20-
double Length() const;
21-
vector3 Unit() const;
20+
double Length() const;
21+
vector3 Unit() const;
2222
}
2323
```
2424

api/drawing/BrokenLines.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ fit the screen and clipping region.
66
```
77
class BrokenLines : Object
88
{
9-
int Count();
10-
string StringAt(int line);
11-
int StringWidth(int line);
9+
int Count();
10+
string StringAt(int line);
11+
int StringWidth(int line);
1212
}
1313
```
1414

api/drawing/Console.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Basic access to console functionality.
55
```
66
struct Console
77
{
8-
static void HideConsole();
9-
static void MidPrint(Font font, string text, bool bold = false);
10-
static vararg void PrintF(string fmt, ...);
8+
static void HideConsole();
9+
static void MidPrint(Font font, string text, bool bold = false);
10+
static vararg void PrintF(string fmt, ...);
1111
}
1212
```
1313

api/drawing/Font.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ not use as a member unless marked as `transient`.**
66
```
77
struct Font
88
{
9-
static Font FindFont(name fontname);
10-
static int FindFontColor(name color);
11-
static Font GetFont(name fontname);
9+
static Font FindFont(name fontname);
10+
static int FindFontColor(name color);
11+
static Font GetFont(name fontname);
1212
13-
double GetBottomAlignOffset(int code);
14-
int GetCharWidth(int code);
15-
string GetCursor();
16-
int GetHeight();
17-
int StringWidth(string code);
13+
double GetBottomAlignOffset(int code);
14+
int GetCharWidth(int code);
15+
string GetCursor();
16+
int GetHeight();
17+
int StringWidth(string code);
1818
19-
BrokenLines BreakLines(string text, int maxlen);
19+
BrokenLines BreakLines(string text, int maxlen);
2020
}
2121
```
2222

api/drawing/GIFont.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ A font as defined in `MAPINFO`/GameInfo.
55
```
66
struct GIFont
77
{
8-
name Color;
9-
name FontName;
8+
name Color;
9+
name FontName;
1010
}
1111
```
1212

api/drawing/Screen.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@ Note: There are no longer any fully paletted renderers in GZDoom as of version
88
```
99
struct Screen
1010
{
11-
static vararg void DrawChar(Font font, int cr, double x, double y, int character, ...);
12-
static vararg void DrawShape(textureid tex, bool animate, Shape2D s, ...);
13-
static vararg void DrawText(Font font, int cr, double x, double y, string text, ...);
14-
static vararg void DrawTexture(textureid tex, bool animate, double x, double y, ...);
15-
16-
static void Clear(int left, int top, int right, int bottom, color cr, int palcolor = -1);
17-
static void Dim(color cr, double amount, int x, int y, int w, int h);
18-
static void DrawFrame(int x, int y, int w, int h);
19-
static void DrawLine(int x0, int y0, int x1, int y1, color cr, int alpha = 255);
20-
static void DrawThickLine(int x0, int y0, int x1, int y1, double thickness, color cr, int alpha = 255);
21-
22-
static double GetAspectRatio();
23-
static int GetHeight();
24-
static int GetWidth();
25-
static color PaletteColor(int index);
26-
static vector2, vector2 VirtualToRealCoords(vector2 pos, vector2 size, vector2 vsize, bool vbottom = false, bool handleaspect = true);
27-
28-
static void ClearClipRect();
29-
static int, int, int, int GetClipRect();
30-
static int, int, int, int GetViewWindow();
31-
static void SetClipRect(int x, int y, int w, int h);
11+
static vararg void DrawChar(Font font, int cr, double x, double y, int character, ...);
12+
static vararg void DrawShape(textureid tex, bool animate, Shape2D s, ...);
13+
static vararg void DrawText(Font font, int cr, double x, double y, string text, ...);
14+
static vararg void DrawTexture(textureid tex, bool animate, double x, double y, ...);
15+
16+
static void Clear(int left, int top, int right, int bottom, color cr, int palcolor = -1);
17+
static void Dim(color cr, double amount, int x, int y, int w, int h);
18+
static void DrawFrame(int x, int y, int w, int h);
19+
static void DrawLine(int x0, int y0, int x1, int y1, color cr, int alpha = 255);
20+
static void DrawThickLine(int x0, int y0, int x1, int y1, double thickness, color cr, int alpha = 255);
21+
22+
static double GetAspectRatio();
23+
static int GetHeight();
24+
static int GetWidth();
25+
static color PaletteColor(int index);
26+
static vector2, vector2 VirtualToRealCoords(vector2 pos, vector2 size, vector2 vsize, bool vbottom = false, bool handleaspect = true);
27+
28+
static void ClearClipRect();
29+
static int, int, int, int GetClipRect();
30+
static int, int, int, int GetViewWindow();
31+
static void SetClipRect(int x, int y, int w, int h);
3232
}
3333
```
3434

0 commit comments

Comments
 (0)