blob: d4e9b093532961a0de6ec4abe3b2d554f51a6477 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*-- Avoid errors from non-existent Engine-Functions --*/
#strict 2
static hostFeatures;
global func SetGameComment() { return _inherited(...); }
global func IsHost() { return _inherited(...); }
global func RequestHostFeature(string feature) { if(!HaveHostFeature(feature)) return _inherited(feature, ...); }
global func AnnounceHostFeature(string feature)
{
hostFeatures || (hostFeatures = []);
hostFeatures[GetLength(hostFeatures)] = feature;
}
global func HaveHostFeature(string feature)
{
hostFeatures || (hostFeatures = []);
return GetIndexOf(feature, hostFeatures) != -1;
}
|