();
+ }
+
+% endif
${merge(" // ", "methods", ' // you can add additional methods here for your AI to call', optional=True)}
#endregion
}
diff --git a/_creer/Games/${game_name}/functions.noCreer b/_creer/Games/${game_name}/functions.noCreer
index 53a234a..b04201b 100644
--- a/_creer/Games/${game_name}/functions.noCreer
+++ b/_creer/Games/${game_name}/functions.noCreer
@@ -2,6 +2,20 @@
if not 'c#' in shared:
shared['c#'] = {}
+ def cs_escape(s):
+ """
+ Returns the ASCII decoded version of the given HTML string. This does
+ NOT remove normal HTML tags like .
+ """
+ htmlCodes = (
+ ('>', '>'),
+ ('<', '<')
+ )
+ for code in htmlCodes:
+ s = s.replace(code[0], code[1])
+ return s
+ shared['c#']['escape'] = cs_escape
+
def cs_default(type_obj, default=None):
base_type = type_obj['name']
if default == None: