Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 |
//============================================================================= // GameReplicationInfo. //============================================================================= class GameReplicationInfo extends ReplicationInfo; var string GameName; // Assigned by GameInfo. var bool bTeamGame; // Assigned by GameInfo. var int RemainingTime, ElapsedTime; var() globalconfig string ServerName; // Name of the server, i.e.: Bob's Server. var() globalconfig string ShortName; // Abbreviated name of server, i.e.: B's Serv (stupid example) var() globalconfig string AdminName; // Name of the server admin. var() globalconfig string AdminEmail; // Email address of the server admin. var() globalconfig int Region; // Region of the game server. var() globalconfig bool ShowMOTD; // Whether or not to display the MOTD. var() globalconfig string MOTDLine1; // Message var() globalconfig string MOTDLine2; // Of var() globalconfig string MOTDLine3; // The var() globalconfig string MOTDLine4; // Day var string GameEndedComments; // set by gameinfo when game ends replication { reliable if ( Role == ROLE_Authority ) GameName, bTeamGame, ServerName, ShortName, AdminName, AdminEmail, Region, ShowMOTD, MOTDLine1, MOTDLine2, MOTDLine3, MOTDLine4; reliable if ( bNetInitial && (Role==ROLE_Authority) ) RemainingTime, ElapsedTime; } simulated function PostBeginPlay() { if ( Level.NetMode == NM_Client ) SetTimer(1.0, true); } simulated function Timer() { ElapsedTime++; if ( RemainingTime > 0 ) RemainingTime--; } defaultproperties { ServerName="Another Unreal Server" ShortName="Unreal Server" RemoteRole=ROLE_SimulatedProxy } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |