1
0
KF2-Dev-Scripts/WebAdmin/Classes/DCEMapInfo.uc
2020-12-13 18:01:13 +03:00

26 lines
572 B
Ucode

/**
* Cache entry for UIMapSummary
*
* Copyright (C) 2011,2014 Tripwire Interactive LLC
*
* @author Michiel 'elmuerte' Hendriks
*/
class DCEMapInfo extends DataStoreCacheEntry;
var string MapName;
var UIMapSummary data;
function init(UIMapSummary source)
{
data = source;
if (data == none)
{
`warn("No UIMapSummary",,'WebAdmin');
return;
}
friendlyName = ensureFriendlyName(data.DisplayName, data.MapName, string(data.name));
description = class'WebAdminUtils'.static.getLocalized(data.Description);
MapName = data.MapName;
}