Deus Ex Documentation::Core

Commandlet.uc (extends )

var localized string HelpCmd;
var localized string HelpOneLiner;
var localized string HelpUsage;
var localized string HelpWebLink;
var localized string HelpParm[16];
var localized string HelpDesc[16];
var bool LogToStdout;
var bool IsServer, IsClient, IsEditor;
var bool LazyLoad;
var bool ShowErrorCount;
var bool ShowBanner;
LogToStdout=True
IsServer=True
IsClient=True
IsEditor=True
LazyLoad=True
ShowBanner=True

Main (string Parms) -> int | native




DebugInfo.uc (extends Object)

AddTimingData (string obj, string objName, int time) | native

Command (string cmd) | native

GetString (string Hash) | native

SetString (string Hash, string Value) | native




HelloWorldCommandlet.uc (extends )

var int intparm;
var string strparm;
HelpCmd="HelloWorld"
HelpOneLiner="Sample"
HelpUsage="HelloWorld"
HelpParm(0)="IntParm"
HelpParm(1)="StrParm"
HelpDesc(0)="An integer parameter"
HelpDesc(1)="A string parameter"

Main (string Parms) -> int


log( "Hello, world!" );
if( Parms!="" )
log( "Command line parameters=" $ Parms );
if( intparm!=0 )
log( "You specified intparm=" $ intparm );
if( strparm!="" )
log( "You specified strparm=" $ strparm );




Locale.uc (extends )

var const string ISO3Language;
var const localized string DisplayLanguage;
var const localized string PrePercent, PostPercent;
var const localized string PreCurrencySymbol, PostCurrencySymbol;
var const localized int PercentScaler;
var const localized int ThousandsCount, ThousandsCountCurrency;
var const localized string
var const localized string ThousandsDelimitor, ThousandsDelimitorCurrency;
var const localized string Decimal, DecimalCurrency;
var const localized int DecimalCount;
var const localized string Months[12];
var const localized string DaysOfWeek[7];
var const localized string AMPM[2];
var const localized ShowAMPM;
var const localized array EditableTimeFields;
var const localized string
var const localized string DateFormat;

Compare (string A, string B) -> int

CurrencyToString (float Currency) -> string

DateTimeToMap (long T) -> map


local map M;

M.Set("Year", Time.GetYear(T));
M.Set("Month", Time.GetMonth(T));
M.Set("MonthName", Months(Time.GetMonth(T)));
M.Set("Day", Time.GetDay(T));
M.Set("DayName", DaysOfWeek(Time.GetDay(T)));
M.Set("Hour24", Time.GetHour(T));
M.Set("Hour12", Time.GetHour(T)%12);
M.Set("AMPM", AMPM(Time.GetHour(T)/12);
M.Set("Minute", Time.GetMinute(T));
M.Set("Second", Time.GetSecond(T));
M.Set("MSec", Time.GetMSec(T));
M.Set("USec", Time.GetUSec(T));
M.Set("NSec", Time.GetNSec(T));
return M;

DateToString (long T) -> string


return string.Format( DateFormat, DateTimeToMap(T) );

GetDisplayLanguage (string Language) -> string | native

GetLanguage -> string | native

MapToDateTime (map Map, out long T) -> bool


//!!

NumberToString (float Number) -> string

PercentToString (float Fraction) -> string


return PrePercent $ int(Fraction * PercentScaler) $ PostPercent;

SetLanguage (string NewLanguage) -> bool | native

TimeToString (long T, bool Brief, bool Countdown) -> string


local string S;

if( Brief )
{
if( ShowAMPM ) S = BriefTimeFormatAMPM;
else S = BriefTimeFormat24Hour,
}
else if( !Countdown )
{
if( ShowAMPM ) S = TimeFormatAMPM;
else S = TimeFormat24Hour,
}
else
{
S = CountdownTimeFormat;
}
return string.Format( S, DateTimeToMap(T) );

ToLower (string S) -> string

ToUpper (string S) -> string




Object.uc (extends )

var native private const int ObjectInternal[6];
var native const object Outer;
var native const int ObjectFlags;
var(Object) native const editconst name Name;
var(Object) native const editconst class Class;
var int A, B, C, D;
var() config float X, Y, Z;
var() config float W;
var() config int Pitch, Yaw, Roll;
var() config vector Origin, XAxis, YAxis, ZAxis;
var() config vector Scale;
var() config float SheerRate;
var() config enum ESheerAxis
var() config byte R, G, B, A;
var vector Min, Max;
var byte IsValid;
var plane Sphere;

Abs (float A) | native

AllObjects (class BaseClass, out object Object) | native

Asc (string S) | native

Atan (float A) | native

BeginState

Caps (coerce string S) | native

Chr (int i) | native

Clamp (int V, int A, int B) | native

Cos (float A) | native

CyclesToSeconds (int cycles) | native

Disable (name ProbeFunc) | native

Enable (name ProbeFunc) | native

EndState

Exp (float A) | native

FClamp (float V, float A, float B) | native

FMax (float A, float B) | native

FMin (float A, float B) | native

FRand | native

GetAxes (rotator A, out vector X, out vector Y, out vector Z) | native

GetEnum (object E, int i) -> name | native

GetPropertyText (string PropName) -> string | native

GetStateName | native

GetUnAxes (rotator A, out vector X, out vector Y, out vector Z) | native

GotoState (optional name NewState, optional name Label) | native

InStr (coerce string S, coerce string t) | native

Invert (out vector X, out vector Y, out vector Z) | native

IsA (name ClassName) | native

IsInState (name TestState) | native

Left (coerce string S, int i) | native

Len (coerce string S) | native

Lerp (float Alpha, float A, float B) | native

Localize (string SectionName, string KeyName, string PackageName) -> string | native

Log (coerce string S, optional name Tag) | native

Loge (float A) | native

Max (int A, int B) | native

Mid (coerce string S, int i, optional int j) | native

Min (int A, int B) | native

MirrorVectorByNormal (vector Vect, vector Normal) | native

Normal (vector A) | native

Normalize (rotator Rot) -> rotator | native

OrthoRotation (vector X, vector Y, vector Z) -> rotator | native

Rand (int Max) | native

RandRange (float Min, float Max) -> float


return Min + (Max - Min) * FRand();

ResetConfig | native

Right (coerce string S, int i) | native

RotRand (optional bool bRoll) | native

SaveConfig | native

SetPropertyText (string PropName, string PropValue) | native

Sin (float A) | native

Smerp (float Alpha, float A, float B) | native

Sqrt (float A) | native

Square (float A) | native

StaticSaveConfig | native

Tan (float A) | native

VRand | native

VSize (vector A) | native

Warn (coerce string S) | native

clock (out int cycles) | native

unclock (out int cycles) | native




Subsystem.uc (extends Object)

var private native const int ExecVtbl;



Time.uc (extends )

DayOfWeek (long Time) -> long

GetDays (long Time) -> long

GetGlobalTime -> long

GetHours (long Time) -> long

GetMSecs (long Time) -> long

GetMinutes (long Time) -> long

GetMonths (long Time) -> long

GetNSecs (long Time) -> long

GetSeconds (long Time) -> long

GetUSecs (long Time) -> long

GetYears (long Time) -> long

GlobalToLocal -> long

LocalToGlobal -> long

SpanSeconds (long Later, long Earlier) -> float