I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX
Difference between revisions of "UnrealScript syntax"
(Reformat, Added K2Pure, K2Call, From and NameOf) |
m (→Keywords: Mistake) |
||
Line 112: | Line 112: | ||
*[[For]] | *[[For]] | ||
*[[ForEach]] | *[[ForEach]] | ||
+ | *[[From]] | ||
*[[Function]] | *[[Function]] | ||
| | | | ||
Line 239: | Line 240: | ||
*[[Unreliable]] | *[[Unreliable]] | ||
*[[Until]] | *[[Until]] | ||
− | |||
| | | | ||
===V=== | ===V=== |
Revision as of 16:20, 17 July 2010
Style
These sections explain styles you should use. The style is based upon Epic's style used in UnrealScript.
Please help improve this article or section by expanding it. Further information might be found on the talk page. |
Names
All variable/function names should be UpperCamelCased, e.g. var Object OwnerObject
.
Bool
Bool's should start with a lowercase b, e.g. bool bUnrealScriptStyle
.
Enum
Enum's should start with uppercase E, e.g. enum EUnrealScriptStyle
. Members should all start with all uppercase characters of the enum's name followed by a _, e.g.
enum EUnrealScriptStyle { USS_Personal, USS_EpicGames };
Interface
Interface's should start with a uppercase I, e.g. interface IUnrealScriptStyle
.
Keywords
This section lists all known UnrealScript keywords(176). This includes hardcoded funtionality of arrays like Insert etc, as well deprecated, postponed and canceled keywords.
A |
B |
C |
D |
E |
F |
G |
H |
I |
K |
L |
M |
N |
O |
P |
R |
S |
T |
U |
V |
W |
Declarations | Preprocessor • Classes • Interfaces • Cpptext • Constants • Enums • Structs • Variables (Metadata) • Replication block • Operators • Delegates • Functions • States • Defaultproperties (Subobjects) |
---|---|
Types | bool • byte • float • int • name • string • Object • Class • Enums • Structs (Vector ⋅ Rotator ⋅ Quat ⋅ Color) • Static arrays • Dynamic arrays • Delegates • Typecasting |
Literals | Boolean • Float • Integer • Names • Objects (None ⋅ Self) • Vectors • Rotators • Strings |
Flow | GoTo • If • Assert • Return • Stop • Switch • While • Do...Until • For • ForEach • Break • Continue |
Specifiers | Super • Global • Static • Default • Const |
UnrealScript | Syntax • .UC • .UCI • .UPKG • Comments • #directives • Native |