Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Engine.FailedConnect


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
class FailedConnect extends LocalMessage
	abstract;

var localized string FailMessage[4];

static function int GetFailSwitch(string FailString)
{
	if ( FailString ~= "NEEDPW" )
		return 0;

	if ( FailString ~= "WRONGPW" )
		return 1;
	
	if ( FailString ~="GAMESTARTED" )
		return 2;
		
	return 3;
}
	
static function string GetString(
	optional int Switch,
	optional PlayerReplicationInfo RelatedPRI_1, 
	optional PlayerReplicationInfo RelatedPRI_2,
	optional Object OptionalObject 
	)
{
	return Default.FailMessage[Clamp(Switch,0,3)];
}
	
defaultproperties
{
	bBeep=false
	bFadeMessage=True
	bIsUnique=True

	DrawColor=(R=255,G=0,B=128,A=255)
	FontSize=1
	
	FailMessage(0)="FAILED TO JOIN GAME.  NEED PASSWORD."
	FailMessage(1)="FAILED TO JOIN GAME.  WRONG PASSWORD."
	FailMessage(2)="FAILED TO JOIN GAME.  GAME HAS STARTED."
	FailMessage(3)="FAILED TO JOIN GAME."
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Di 5.9.2006 22:28:40.000 - Creation time: Do 14.8.2014 09:58:38.645 - Created with UnCodeX