I love the smell of UnrealEd crashing in the morning. – tarquin
Difference between revisions of "UnrealScript syntax"
From Unreal Wiki, The Unreal Engine Documentation Site
m (→Keywords: Added AutoCollapseCategories and DontAutoCollapseCategories) |
(Reformat, Added K2Pure, K2Call, From and NameOf) |
||
Line 1: | Line 1: | ||
− | + | __NOTOC__ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
==Style== | ==Style== | ||
These sections explain styles you should use. The style is based upon Epic's style used in [[UnrealScript]]. | These sections explain styles you should use. The style is based upon Epic's style used in [[UnrealScript]]. | ||
{{expand}} | {{expand}} | ||
+ | |||
===Names=== | ===Names=== | ||
All variable/function names should be [[wp:CamelCase|UpperCamelCased]], e.g. <code>var Object OwnerObject</code>. | All variable/function names should be [[wp:CamelCase|UpperCamelCased]], e.g. <code>var Object OwnerObject</code>. | ||
+ | |||
====Bool==== | ====Bool==== | ||
[[Bool|Bool's]] should start with a lowercase b, e.g. <code>bool bUnrealScriptStyle</code>. | [[Bool|Bool's]] should start with a lowercase b, e.g. <code>bool bUnrealScriptStyle</code>. | ||
+ | |||
====Enum==== | ====Enum==== | ||
[[Enum|Enum's]] should start with uppercase E, e.g. <code>enum EUnrealScriptStyle</code>. | [[Enum|Enum's]] should start with uppercase E, e.g. <code>enum EUnrealScriptStyle</code>. | ||
Line 236: | Line 19: | ||
USS_EpicGames | USS_EpicGames | ||
};</uscript> | };</uscript> | ||
+ | |||
====Interface==== | ====Interface==== | ||
[[Interface|Interface's]] should start with a uppercase I, e.g. <code>interface IUnrealScriptStyle</code>. | [[Interface|Interface's]] should start with a uppercase I, e.g. <code>interface IUnrealScriptStyle</code>. | ||
+ | |||
+ | ==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. | ||
+ | |||
+ | {| | ||
+ | |-valign="top" | ||
+ | |||
+ | | | ||
+ | ===A=== | ||
+ | *[[Abstract]] | ||
+ | *[[Add]] | ||
+ | *[[AddIndex]] | ||
+ | *[[AddItem]] | ||
+ | *[[Array]] | ||
+ | *[[ArrayCount]] | ||
+ | *[[Assert]] | ||
+ | *[[Atomic]] | ||
+ | *[[AtomicWhenCooked]] | ||
+ | *[[Auto]] | ||
+ | *[[AutoCollapseCategories]] | ||
+ | *[[AutoExpandCategories]] | ||
+ | *[[Automated]] | ||
+ | | | ||
+ | ===B=== | ||
+ | *[[Begin]] | ||
+ | *[[Bool]] | ||
+ | *[[Break]] | ||
+ | *[[Byte]] | ||
+ | | | ||
+ | ===C=== | ||
+ | *[[Case]] | ||
+ | *[[CacheExempt]] | ||
+ | *[[Cache]] | ||
+ | *[[Class]] | ||
+ | *[[Client]] | ||
+ | *[[Cpptext|CppStruct]] | ||
+ | *[[Cpptext|CppText]] | ||
+ | *[[Coerce]] | ||
+ | *[[CollapseCategories]] | ||
+ | *[[Config]] | ||
+ | *[[Const]] | ||
+ | *[[Continue]] | ||
+ | *[[CrossLevelPassive]] | ||
+ | | | ||
+ | ===D=== | ||
+ | *[[DataBinding]] | ||
+ | *[[Default]] | ||
+ | *[[Defaultproperties|DefaultProperties]] | ||
+ | *[[Delegate]] | ||
+ | *[[DemoRecording]] | ||
+ | *[[DependsOn]] | ||
+ | *[[Deprecated]] | ||
+ | *[[Do]] | ||
+ | *[[DontAutoCollapseCategories]] | ||
+ | *[[DontCollapseCategories]] | ||
+ | *[[DLLBind]] | ||
+ | *[[DLLImport]] | ||
+ | *[[DuplicateTransient]] | ||
+ | | | ||
+ | ===E=== | ||
+ | *[[EdFindable]] | ||
+ | *[[EditConst]] | ||
+ | *[[EditConstArray]] | ||
+ | *[[EditFixedSize]] | ||
+ | *[[EditHide]] | ||
+ | *[[EditorOnly]] | ||
+ | *[[EditInline]] | ||
+ | *[[EditInlineNew]] | ||
+ | *[[EditInlineNotify]] | ||
+ | *[[EditInlineUse]] | ||
+ | *[[EditTextBox]] | ||
+ | *[[Else]] | ||
+ | *[[Empty]] | ||
+ | *[[End]] | ||
+ | *[[Enum]] | ||
+ | *[[EnumCount]] | ||
+ | *[[Event]] | ||
+ | *[[Exec]] | ||
+ | *[[Expands]] | ||
+ | *[[Export]] | ||
+ | *[[ExportStructs]] | ||
+ | *[[Extends]] | ||
+ | | | ||
+ | ===F=== | ||
+ | *[[False]] | ||
+ | *[[Final]] | ||
+ | *[[Find]] | ||
+ | *[[Float]] | ||
+ | *[[For]] | ||
+ | *[[ForEach]] | ||
+ | *[[Function]] | ||
+ | | | ||
+ | ===G=== | ||
+ | *[[Global]] | ||
+ | *[[GlobalConfig]] | ||
+ | *[[GoTo]] | ||
+ | *[[Guid]] | ||
+ | |-valign="top" | ||
+ | | | ||
+ | ===H=== | ||
+ | *[[HideCategories]] | ||
+ | *[[HideDropDown]] | ||
+ | | | ||
+ | ===I=== | ||
+ | *[[If]] | ||
+ | *[[Ignores]] | ||
+ | *[[Immutable]] | ||
+ | *[[ImmutableWhenCooked]] | ||
+ | *[[Implements]] | ||
+ | *[[Import]] | ||
+ | *[[Inherits]] | ||
+ | *[[Init]] | ||
+ | *[[Input]] | ||
+ | *[[Insert]] | ||
+ | *[[InsertItem]] | ||
+ | *[[Instanced]] | ||
+ | *[[Int]] | ||
+ | *[[Interface]] | ||
+ | *[[Interp]] | ||
+ | *[[Intrinsic]] | ||
+ | *[[Invariant]] | ||
+ | *[[Iterator]] | ||
+ | | | ||
+ | ===K=== | ||
+ | *[[K2Pure]] | ||
+ | *[[K2Call]] | ||
+ | | | ||
+ | ===L=== | ||
+ | *[[Latent]] | ||
+ | *[[Length]] | ||
+ | *[[Local]] | ||
+ | *[[Localized]] | ||
+ | *[[Long]] | ||
+ | | | ||
+ | ===M=== | ||
+ | *[[Map]] | ||
+ | | | ||
+ | ===N=== | ||
+ | *[[Name]] | ||
+ | *[[NameOf]] | ||
+ | *[[Native]] | ||
+ | *[[NativeReplication]] | ||
+ | *[[New]] | ||
+ | *[[NoExport]] | ||
+ | *[[NoExportHeader]] | ||
+ | *[[NoClear]] | ||
+ | *[[NoImport]] | ||
+ | *[[None]] | ||
+ | *[[NonTransactional]] | ||
+ | *[[NotEditInlineNew]] | ||
+ | *[[NotForConsole]] | ||
+ | *[[NotInstanced]] | ||
+ | *[[NotPlaceable]] | ||
+ | *[[NotTransient]] | ||
+ | *[[NoUserCreate]] | ||
+ | | | ||
+ | ===O=== | ||
+ | *[[Operator]] | ||
+ | *[[Optional]] | ||
+ | *[[Out]] | ||
+ | |-valign="top" | ||
+ | | | ||
+ | ===P=== | ||
+ | *[[ParseConfig]] | ||
+ | *[[PerObjectConfig]] | ||
+ | *[[PerObjectLocalized]] | ||
+ | *[[Placeable]] | ||
+ | *[[Private]] | ||
+ | *[[PrivateWrite]] | ||
+ | *[[PreOperator]] | ||
+ | *[[Protected]] | ||
+ | *[[ProtectedWrite]] | ||
+ | *[[Pointer]] | ||
+ | *[[PostOperator]] | ||
+ | *[[Public]] | ||
+ | | | ||
+ | ===R=== | ||
+ | *[[Reliable]] | ||
+ | *[[Remove]] | ||
+ | *[[RemoveIndex]] | ||
+ | *[[RemoveItem]] | ||
+ | *[[Replace]] | ||
+ | *[[Replication]] | ||
+ | *[[RepNotify]] | ||
+ | *[[Return]] | ||
+ | *[[Rot]] | ||
+ | *[[Rng]] | ||
+ | | | ||
+ | ===S=== | ||
+ | *[[ShowCategories]] | ||
+ | *[[Cpptext|StructCppText]] | ||
+ | *[[Structdefaultproperties|StructDefaultProperties]] | ||
+ | *[[Structdefaultproperties|StructDefaults]] | ||
+ | *[[SafeReplace]] | ||
+ | *[[Self]] | ||
+ | *[[Server]] | ||
+ | *[[SerializeText]] | ||
+ | *[[Simulated]] | ||
+ | *[[Singular]] | ||
+ | *[[Skip]] | ||
+ | *[[Sort]] | ||
+ | *[[State]] | ||
+ | *[[Stop]] | ||
+ | *[[StrictConfig]] | ||
+ | *[[String]] | ||
+ | *[[Struct]] | ||
+ | *[[Super]] | ||
+ | *[[Switch]] | ||
+ | | | ||
+ | ===T=== | ||
+ | *[[Transient]] | ||
+ | *[[Travel]] | ||
+ | *[[True]] | ||
+ | | | ||
+ | ===U=== | ||
+ | *[[Unreliable]] | ||
+ | *[[Until]] | ||
+ | *[[From]] | ||
+ | | | ||
+ | ===V=== | ||
+ | *[[Var]] | ||
+ | *[[Vect]] | ||
+ | *[[Virtual]] | ||
+ | | | ||
+ | ===W=== | ||
+ | *[[While]] | ||
+ | *[[Within]] | ||
+ | |} | ||
{{Navbox unrealscript}} | {{Navbox unrealscript}} | ||
[[Category:Programming articles]] | [[Category:Programming articles]] |
Revision as of 16:12, 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 |