Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
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
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058

    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;
    }

    #if IG_TRIBES3 // david: more flexibility in LocalMessage system, uses Objects instead of PlayerReplicationInfos

    static function string GetString(
    	optional int Switch,
    	optional Core.Object Related1,
    	optional Core.Object Related2,
    	optional Core.Object OptionalObject,
    	optional string OptionalString
    	)
    {
    	return Default.FailMessage[Clamp(Switch,0,3)];
    }

    #else
    static function string GetString(
    	optional int Switch,
    	optional PlayerReplicationInfo RelatedPRI_1,
    	optional PlayerReplicationInfo RelatedPRI_2,
    	optional Core.Object OptionalObject
    	)
    {
    	return Default.FailMessage[Clamp(Switch,0,3)];
    }
    #endif

    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 | UnrealScript Documentation
previous class next class | frames no frames

Class file time: ne 5.9.2004 16:01:22.000 - Creation time: st 23.5.2018 00:10:43.395 - Created with UnCodeX