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
Jump to: navigation, search
m (Keywords: Added AutoCollapseCategories and DontAutoCollapseCategories)
(Reformat, Added K2Pure, K2Call, From and NameOf)
Line 1: Line 1:
==Keywords==
+
__NOTOC__
This section lists all known UnrealScript keywords this includes hardcoded funtionality of arrays like Insert etc, as well deprecated, postponed and canceled keywords.
+
 
+
{| align="center" cellspacing="0" cellpadding="3" border="1" style="background-color:#FAFAFA;" |
+
|+ | '''173 UnrealScript keywords'''
+
|-
+
|[[Abstract]]
+
|[[Add]]
+
|[[AddIndex]]
+
|[[AddItem]]
+
|[[Array]]
+
|[[ArrayCount]]
+
|[[Assert]]
+
|[[Atomic]]
+
|-
+
|[[AtomicWhenCooked]]
+
|[[Auto]]
+
|[[AutoCollapseCategories]]
+
|[[AutoExpandCategories]]
+
|[[Automated]]
+
 
+
|[[Begin]]
+
|[[Bool]]
+
|[[Break]]
+
|-
+
|[[Byte]]
+
|[[Case]]
+
|[[CacheExempt]]
+
|[[Cache]]
+
|[[Class]]
+
|[[Client]]
+
|[[Cpptext|CppStruct]]
+
|[[Cpptext|CppText]]
+
|-
+
|[[Coerce]]
+
|[[CollapseCategories]]
+
|[[Config]]
+
|[[Const]]
+
|[[Continue]]
+
|[[CrossLevelPassive]]
+
 
+
|[[DataBinding]]
+
|[[Default]]
+
|-
+
|[[Defaultproperties|DefaultProperties]]
+
|[[Delegate]]
+
|[[DemoRecording]]
+
|[[DependsOn]]
+
|[[Deprecated]]
+
|[[Do]]
+
|[[DontAutoCollapseCategories]]
+
|[[DontCollapseCategories]]
+
|-
+
|[[DLLBind]]
+
|[[DLLImport]]
+
|[[DuplicateTransient]]
+
 
+
|[[EdFindable]]
+
|[[EditConst]]
+
|[[EditConstArray]]
+
|[[EditFixedSize]]
+
|[[EditHide]]
+
|-
+
|[[EditorOnly]]
+
|[[EditInline]]
+
|[[EditInlineNew]]
+
|[[EditInlineNotify]]
+
|[[EditInlineUse]]
+
|[[EditTextBox]]
+
|[[Else]]
+
|[[Empty]]
+
|-
+
|[[End]]
+
|[[Enum]]
+
|[[EnumCount]]
+
|[[Event]]
+
|[[Exec]]
+
|[[Expands]]
+
|[[Export]]
+
|[[ExportStructs]]
+
|-
+
|[[Extends]]
+
 
+
|[[False]]
+
|[[Final]]
+
|[[Find]]
+
|[[Float]]
+
|[[For]]
+
|[[ForEach]]
+
|[[Function]]
+
|-
+
|[[Global]]
+
|[[GlobalConfig]]
+
|[[GoTo]]
+
|[[Guid]]
+
 
+
|[[HideCategories]]
+
|[[HideDropDown]]
+
 
+
|[[If]]
+
|[[Ignores]]
+
|-
+
|[[Immutable]]
+
|[[ImmutableWhenCooked]]
+
|[[Implements]]
+
|[[Import]]
+
|[[Inherits]]
+
|[[Init]]
+
|[[Input]]
+
|[[Insert]]
+
|-
+
|[[InsertItem]]
+
|[[Instanced]]
+
|[[Int]]
+
|[[Interface]]
+
|[[Interp]]
+
|[[Intrinsic]]
+
|[[Invariant]]
+
|[[Iterator]]
+
|-
+
|[[Latent]]
+
|[[Length]]
+
|[[Local]]
+
|[[Localized]]
+
|[[Long]]
+
 
+
|[[Map]]
+
 
+
|[[Name]]
+
|[[Native]]
+
|-
+
|[[NativeReplication]]
+
|[[New]]
+
|[[NoExport]]
+
|[[NoExportHeader]]
+
|[[NoClear]]
+
|[[NoImport]]
+
|[[None]]
+
|[[NonTransactional]]
+
|-
+
|[[NotEditInlineNew]]
+
|[[NotForConsole]]
+
|[[NotInstanced]]
+
|[[NotPlaceable]]
+
|[[NotTransient]]
+
|[[NoUserCreate]]
+
 
+
|[[Operator]]
+
|[[Optional]]
+
|-
+
|[[Out]]
+
 
+
|[[ParseConfig]]
+
|[[PerObjectConfig]]
+
|[[PerObjectLocalized]]
+
|[[Placeable]]
+
|[[Private]]
+
|[[PrivateWrite]]
+
|[[PreOperator]]
+
|-
+
|[[Protected]]
+
|[[ProtectedWrite]]
+
|[[Pointer]]
+
|[[PostOperator]]
+
|[[Public]]
+
 
+
|[[Reliable]]
+
|[[Remove]]
+
|[[RemoveIndex]]
+
|-
+
|[[RemoveItem]]
+
|[[Replace]]
+
|[[Replication]]
+
|[[RepNotify]]
+
|[[Return]]
+
|[[Rot]]
+
|[[Rng]]
+
 
+
|[[ShowCategories]]
+
|-
+
|[[Cpptext|StructCppText]]
+
|[[Structdefaultproperties|StructDefaultProperties]]
+
|[[Structdefaultproperties|StructDefaults]]
+
|[[SafeReplace]]
+
|[[Self]]
+
|[[Server]]
+
|[[SerializeText]]
+
|[[Simulated]]
+
|-
+
|[[Singular]]
+
|[[Skip]]
+
|[[Sort]]
+
|[[State]]
+
|[[Stop]]
+
|[[StrictConfig]]
+
|[[String]]
+
|[[Struct]]
+
|-
+
|[[Super]]
+
|[[Switch]]
+
 
+
|[[Transient]]
+
|[[Travel]]
+
|[[True]]
+
 
+
|[[Unreliable]]
+
|[[Until]]
+
|[[Using]]
+
|-
+
|[[Var]]
+
|[[Vect]]
+
|[[Virtual]]
+
 
+
|[[While]]
+
|[[Within]]
+
 
+
| 
+
| 
+
| 
+
|}
+
 
+
 
==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.


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