home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Level Design
/
GLDesign.bin
/
Software
/
UnrealEngine2Runtime
/
UE2Runtime-22262001_Demo.exe
/
Core
/
Classes
/
HelloWorldCommandlet.uc
< prev
next >
Wrap
Text File
|
2003-08-27
|
921b
|
37 lines
//=============================================================================
/// UnrealScript "hello world" sample Commandlet.
///
/// Usage:
/// ucc.exe HelloWorld
//=============================================================================
class HelloWorldCommandlet
extends Commandlet;
var int intparm;
var string strparm;
function int Main( string Parms )
{
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 );
return 0;
}
defaultproperties
{
HelpCmd="HelloWorld"
HelpOneLiner="Sample 'hello world' commandlet"
HelpUsage="HelloWorld (no parameters)"
HelpWebLink=""
LogToStdout=true
HelpParm(0)="IntParm"
HelpDesc(0)="An integer parameter"
HelpParm(1)="StrParm"
HelpDesc(1)="A string parameter"
}