diff options
| author | Mittendrein Markus <maxmitti@gmx.net> | 2015-09-02 18:20:13 +0200 |
|---|---|---|
| committer | Mittendrein Markus <maxmitti@gmx.net> | 2015-09-03 19:22:38 +0200 |
| commit | aba072f6403cbc9acd818da36e7baeec1a43fd06 (patch) | |
| tree | 2a824169db3084e4428697ec11951b23329abf86 /TemplePushing.c4s/System.c4g | |
| parent | 736efdaf6aea46dc44322e84656a7a489face44a (diff) | |
| download | tempelschubsen-gamecomment.tar.gz tempelschubsen-gamecomment.zip | |
Show a option to disable GameComments if the host has the GameComment-featuregamecomment
Diffstat (limited to 'TemplePushing.c4s/System.c4g')
| -rw-r--r-- | TemplePushing.c4s/System.c4g/Compatibility.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/TemplePushing.c4s/System.c4g/Compatibility.c b/TemplePushing.c4s/System.c4g/Compatibility.c index 5d3865e..d4e9b09 100644 --- a/TemplePushing.c4s/System.c4g/Compatibility.c +++ b/TemplePushing.c4s/System.c4g/Compatibility.c @@ -2,4 +2,20 @@ #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;
+}
|
