I don't need to test my programs. I have an error-correcting modem.

Difference between revisions of "UnrealScript syntax"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m (Keywords: Mistake)
m (Keywords: Added sups)
Line 24: Line 24:
  
 
==Keywords==
 
==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.
+
This section lists all known UnrealScript keywords(176). This includes hardcoded funtionality of arrays like Insert etc, as well '''d'''eprecated, '''p'''ostponed, '''r'''e-named and '''c'''anceled keywords.
  
 
{|
 
{|
Line 35: Line 35:
 
*[[AddIndex]]
 
*[[AddIndex]]
 
*[[AddItem]]
 
*[[AddItem]]
 +
*[[Always]]<sup>C</sup>
 
*[[Array]]
 
*[[Array]]
 
*[[ArrayCount]]
 
*[[ArrayCount]]
Line 57: Line 58:
 
*[[Class]]
 
*[[Class]]
 
*[[Client]]
 
*[[Client]]
*[[Cpptext|CppStruct]]
+
*[[Cpptext|CppStruct]]<sup>R</sup>
 
*[[Cpptext|CppText]]
 
*[[Cpptext|CppText]]
 
*[[Coerce]]
 
*[[Coerce]]
Line 112: Line 113:
 
*[[For]]
 
*[[For]]
 
*[[ForEach]]
 
*[[ForEach]]
*[[From]]
+
*[[From]]<sup>C</sup>
 
*[[Function]]
 
*[[Function]]
 
|
 
|
Line 132: Line 133:
 
*[[ImmutableWhenCooked]]
 
*[[ImmutableWhenCooked]]
 
*[[Implements]]
 
*[[Implements]]
*[[Import]]
+
*[[Import]]<sup>C</sup>
 
*[[Inherits]]
 
*[[Inherits]]
 
*[[Init]]
 
*[[Init]]
Line 143: Line 144:
 
*[[Interp]]
 
*[[Interp]]
 
*[[Intrinsic]]
 
*[[Intrinsic]]
*[[Invariant]]
+
*[[Invariant]]<sup>C</sup>
 
*[[Iterator]]
 
*[[Iterator]]
 
|
 
|
Line 209: Line 210:
 
*[[Return]]
 
*[[Return]]
 
*[[Rot]]
 
*[[Rot]]
*[[Rng]]
+
*[[Rng]]<sup>C</sup>
 
|
 
|
 
===S===
 
===S===
Line 215: Line 216:
 
*[[Cpptext|StructCppText]]
 
*[[Cpptext|StructCppText]]
 
*[[Structdefaultproperties|StructDefaultProperties]]
 
*[[Structdefaultproperties|StructDefaultProperties]]
*[[Structdefaultproperties|StructDefaults]]
+
*[[Structdefaultproperties|StructDefaults]]<sup>R</sup>
 
*[[SafeReplace]]
 
*[[SafeReplace]]
 
*[[Self]]
 
*[[Self]]

Revision as of 16:58, 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, re-named and canceled keywords.

A

B

C

D

E

F

G

H

I

K

L

M

N

O

P

R

S

T

U

V

W