1
0
KF2-Dev-Scripts/WebAdmin/Classes/DCEGameInfo.uc

26 lines
598 B
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
/**
* Cache entry for UIGameInfoSummary
*
* Copyright (C) 2011,2014 Tripwire Interactive LLC
*
* @author Michiel 'elmuerte' Hendriks
*/
class DCEGameInfo extends DataStoreCacheEntry;
var string ClassName;
var UIGameInfoSummary data;
function init(UIGameInfoSummary source)
{
data = source;
if (data == none)
{
`warn("No UIGameInfoSummary",,'WebAdmin');
return;
}
FriendlyName = ensureFriendlyName(data.GameName, data.ClassName, string(data.name));
Description = class'WebAdminUtils'.static.getLocalized(data.Description);
ClassName = data.ClassName;
}