|
|
@ -38,8 +38,6 @@ var protected config string acronym; |
|
|
|
// Map prefix - only maps that start with specified prefix will be voteable for |
|
|
|
// Map prefix - only maps that start with specified prefix will be voteable for |
|
|
|
// this game mode (plain string) |
|
|
|
// this game mode (plain string) |
|
|
|
var protected config string mapPrefix; |
|
|
|
var protected config string mapPrefix; |
|
|
|
// TODO |
|
|
|
|
|
|
|
var protected config string mapList; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Aliases are an unnecessary overkill for difficulty names, so just define |
|
|
|
// Aliases are an unnecessary overkill for difficulty names, so just define |
|
|
|
// them in special `string` arrays. |
|
|
|
// them in special `string` arrays. |
|
|
@ -60,7 +58,6 @@ protected function DefaultIt() |
|
|
|
gameTypeClass = "KFMod.KFGameType"; |
|
|
|
gameTypeClass = "KFMod.KFGameType"; |
|
|
|
acronym = ""; |
|
|
|
acronym = ""; |
|
|
|
mapPrefix = "KF"; |
|
|
|
mapPrefix = "KF"; |
|
|
|
mapList = "defaultHard"; |
|
|
|
|
|
|
|
includeFeature.length = 0; |
|
|
|
includeFeature.length = 0; |
|
|
|
excludeFeature.length = 0; |
|
|
|
excludeFeature.length = 0; |
|
|
|
includeMutator.length = 0; |
|
|
|
includeMutator.length = 0; |
|
|
@ -80,7 +77,6 @@ protected function HashTable ToData() |
|
|
|
result.SetString(P("gameTypeClass"), gameTypeClass); |
|
|
|
result.SetString(P("gameTypeClass"), gameTypeClass); |
|
|
|
result.SetString(P("acronym"), acronym); |
|
|
|
result.SetString(P("acronym"), acronym); |
|
|
|
result.SetString(P("mapPrefix"), mapPrefix); |
|
|
|
result.SetString(P("mapPrefix"), mapPrefix); |
|
|
|
result.SetString(P("mapList"), mapList); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nextArray = _.collections.EmptyArrayList(); |
|
|
|
nextArray = _.collections.EmptyArrayList(); |
|
|
|
for (i = 0; i < option.length; i += 1) |
|
|
|
for (i = 0; i < option.length; i += 1) |
|
|
@ -110,7 +106,6 @@ protected function FromData(HashTable source) |
|
|
|
gameTypeClass = source.GetString(P("gameTypeClass")); |
|
|
|
gameTypeClass = source.GetString(P("gameTypeClass")); |
|
|
|
acronym = source.GetString(P("acronym")); |
|
|
|
acronym = source.GetString(P("acronym")); |
|
|
|
mapPrefix = source.GetString(P("mapPrefix")); |
|
|
|
mapPrefix = source.GetString(P("mapPrefix")); |
|
|
|
mapList = source.GetString(P("mapList")); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nextArray = source.GetArrayList(P("option")); |
|
|
|
nextArray = source.GetArrayList(P("option")); |
|
|
|
if (nextArray == none) { |
|
|
|
if (nextArray == none) { |
|
|
|