From 0c9bd9282cc7c386a189e4d60c4ff74065299496 Mon Sep 17 00:00:00 2001 From: Major Cooke Date: Tue, 13 Jun 2023 14:30:17 -0500 Subject: [PATCH] Added GetName(UI/Data) to Service class. --- wadsrc/static/zscript/engine/service.zs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/wadsrc/static/zscript/engine/service.zs b/wadsrc/static/zscript/engine/service.zs index a536cd616b..87f6158a36 100644 --- a/wadsrc/static/zscript/engine/service.zs +++ b/wadsrc/static/zscript/engine/service.zs @@ -34,6 +34,12 @@ class Service abstract return null; } + virtual play Name GetName(String request, string stringArg = "", int intArg = 0, double doubleArg = 0, Object objectArg = null, Name nameArg = '') + { + return ''; + } + + // UI variants virtual ui String GetStringUI(String request, string stringArg = "", int intArg = 0, double doubleArg = 0, Object objectArg = null) { @@ -55,6 +61,11 @@ class Service abstract return null; } + virtual ui Name GetNameUI(String request, string stringArg = "", int intArg = 0, double doubleArg = 0, Object objectArg = null, Name nameArg = '') + { + return ''; + } + // data/clearscope variants virtual clearscope String GetStringData(String request, string stringArg = "", int intArg = 0, double doubleArg = 0, Object objectArg = null) { @@ -75,6 +86,11 @@ class Service abstract { return null; } + + virtual clearscope Name GetNameData(String request, string stringArg = "", int intArg = 0, double doubleArg = 0, Object objectArg = null, Name nameArg = '') + { + return ''; + } static Service Find(class serviceName){ return AllServices.GetIfExists(serviceName.GetClassName());