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 00122 00123 00124 00125 00126 00127 00128 00129 00130 00131 00132 00133 00134 00135 00136 00137 00138 00139 00140 00141 00142 00143 00144 00145 00146 00147 00148 00149 00150 00151 00152 00153 00154 00155 00156 00157 00158 00159 00160 00161 00162 00163 00164 00165 00166 00167 |
/** * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved. */ class UTGameModifierCard extends Object; struct EModiferCardData { // The Tag by which you reference this card var name Tag; // The ProfileID that will be used to reference this card var int ProfileID; // This card will add the following URL to the launch line var string URL; // Holds UI markup that points to the localized description for this card var string DescMarkup; // If true, this card must be used in the next round var bool bMustUse; // If true you can only have 1 of these cards in your deck at one time var bool bUnique; // An Index used to look up the card in a list of images var int ImageListIndex; // The UV coordinates of the card's image var TextureCoordinates UVs; var TextureCoordinates AltUVs; var ESinglePlayerPersistentKeys AltKey; }; var array<EModiferCardData> Deck; static function Name GetNameForProfileID(int ProfileID) { local int i; for (i=0;i<Default.Deck.Length; i++) { if ( default.Deck[i].ProfileId == ProfileID ) { return default.Deck[i].Tag; } } return ''; } /** Get any additionals to the URL from this card */ static function string GetURL(name Tag) { local int i; for (i=0;i<Default.Deck.Length; i++) { if ( default.Deck[i].Tag == Tag ) { return default.Deck[i].URL; } } return ""; } static function ESinglePlayerPersistentKeys GetAltKey(name Tag) { local int i; for (i=0;i<Default.Deck.Length; i++) { if ( default.Deck[i].Tag == Tag ) { return default.Deck[i].AltKey; } } return ESPKey_None; } static function int GetProfileIndexFor(name Tag) { local int i; for (i=0;i<Default.Deck.Length; i++) { if ( default.Deck[i].Tag == Tag ) { return default.Deck[i].ProfileID; } } return INDEX_None; } static function TextureCoordinates GetUVs(name Tag, UTProfileSettings Profile) { local int i; local TextureCoordinates UV; for ( i=0;i<Default.Deck.Length; i++) { if ( default.Deck[i].Tag == Tag ) { if ( Profile.HasPersistentKey(default.Deck[i].AltKey) ) { return default.deck[i].ALtUVs; } else { return default.Deck[i].UVs; } } } return UV; } static function string GetDesc(name Tag) { local int i; for ( i=0;i<Default.Deck.Length; i++) { if ( default.Deck[i].Tag == Tag ) { return default.Deck[i].DescMarkup; } } return ""; } static function bool IsUnique(name Tag) { local int i; for ( i=0;i<Default.Deck.Length; i++) { if ( default.Deck[i].Tag == Tag ) { return default.Deck[i].bUnique; } } return false; } static function bool IsMustUse(name Tag) { local int i; for ( i=0;i<Default.Deck.Length; i++) { if ( default.Deck[i].Tag == Tag ) { return default.Deck[i].bMustUse; } } return false; } defaultproperties { Deck(0)=(Tag="TacticalDiversion",DescMarkup="<Strings:UTGameUI.CardDesc.Desc0>",UVs=(U=398.000000,V=1.000000,UL=198.000000,VL=252.000000)) Deck(1)=(Tag="IronGuard",ProfileId=1,DescMarkup="<Strings:UTGameUI.CardDesc.Desc1>",UVs=(U=1.000000,V=1.000000,UL=198.000000,VL=252.000000),AltUVs=(U=200.000000,V=253.000000,UL=198.000000,VL=252.000000),AltKey=ESPKey_IronGuardUpgrade) Deck(2)=(Tag="Liandri",ProfileId=2,DescMarkup="<Strings:UTGameUI.CardDesc.Desc2>",UVs=(U=596.000000,V=1.000000,UL=198.000000,VL=252.000000),AltUVs=(U=398.000000,V=253.000000,UL=198.000000,VL=252.000000),AltKey=ESPKey_LiandriUpgrade) Deck(3)=(Tag="RespawnUpgrade",ProfileId=3,URL="?CoolSpawn=1",DescMarkup="<Strings:UTGameUI.CardDesc.Desc3>",UVs=(U=2.000000,V=253.000000,UL=198.000000,VL=252.000000)) Deck(4)=(Tag="HeavyArmor",ProfileId=4,URL="?HeavyArmor=1",DescMarkup="<Strings:UTGameUI.CardDesc.Desc4>",UVs=(U=200.000000,V=1.000000,UL=198.000000,VL=252.000000)) Deck(5)=(Tag="InstaGib",ProfileId=5,URL="?Mutator=UTGame.UTMutator_Instagib",DescMarkup="<Strings:UTGameUI.CardDesc.Desc5>",bMustUse=True,bUnique=True,UVs=(U=398.000000,V=1.000000,UL=198.000000,VL=252.000000)) Name="Default__UTGameModifierCard" ObjectArchetype=Object'Core.Default__Object' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |