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 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 |
/** * Provides data for a UT3 mutator. * * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved. */ class UTUIDataProvider_Mutator extends UTUIResourceDataProvider PerObjectConfig native(UI); /** The mutator class name. */ var config string ClassName; /** Friendly name for the mutator. */ var config localized string FriendlyName; /** Description for the mutator. */ var config localized string Description; /** Name of the group(s) the mutator belongs to, separated by pipes | */ var config string GroupNames; /** Path to a UIScene to use for configuring this mutator. */ var config string UIConfigScene; /** gametypes this mutator supports - an empty array means it supports any gametype */ var config array<string> SupportedGameTypes; /** Whether or not the mutator should be allowed in standalone matches only. */ var config bool bStandaloneOnly; /** * Indicates whether this data provider corresponds to an epic mutator class. Set natively when the data provider * is initialized. */ var const private bool bOfficialMutator; /** * For official mutators, specify a unique bit index, so that all bits are the same independent of language */ var config int BitValue; // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) /** * @return TRUE if this data provider corresponds to an epic mutator class. */ native final function bool IsOfficialMutator() const; /** @return Returns whether or not this mutator supports the currently set gamemode in the frontend. */ event bool SupportsCurrentGameMode() { local string GameMode; local class<UTGame> GameModeClass; local bool bResult, bGameTypeSupported; local string StandaloneMatch; bResult = true; // Check to see if we should be allowed in stand alone matches only if(bStandaloneOnly && GetDataStoreStringValue("<Registry:StandaloneGame>", StandaloneMatch)) { bResult = (StandaloneMatch == "1"); } // Make sure we are compatible with the selected game mode. GetDataStoreStringValue("<Registry:SelectedGameMode>", GameMode); if ( GameMode != "" ) { if ( SupportedGameTypes.Length > 0 ) { bGameTypeSupported = SupportedGameTypes.Find(GameMode) != INDEX_NONE; if ( !bGameTypeSupported ) { // Make sure we use the UTGame version of classes. GameMode = Repl(GameMode, "UTGameContent.", "UTGame."); GameMode = Repl(GameMode, "UT3GoldGame.", "UTGame."); GameMode = Repl(GameMode, "_Content", ""); // try checking the modified GameMode string as well if ( SupportedGameTypes.Find(GameMode) == INDEX_NONE) { bResult = false; } } } if ( bResult ) { // Make sure we use the UTGame version of classes. GameMode = Repl(GameMode, "UTGameContent.", "UTGame."); GameMode = Repl(GameMode, "UT3GoldGame.", "UTGame."); GameMode = Repl(GameMode, "_Content", ""); // Find the class and then see if this mutator is allowed. GameModeClass = class<UTGame>(FindObject(GameMode, class'class')); if(GameModeClass != none) { bResult = GameModeClass.static.AllowMutator(ClassName); } else { LogInternal("UTUIDataProvider_Mutator::SupportsCurrentGameMode() - Unable to find game class: "$GameMode); } } } return bResult; } defaultproperties { bSearchAllInis=True Name="Default__UTUIDataProvider_Mutator" ObjectArchetype=UTUIResourceDataProvider'UTGame.Default__UTUIResourceDataProvider' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |