mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Added GetName(UI/Data) to Service class.
This commit is contained in:
parent
4b49d9d185
commit
0c9bd9282c
1 changed files with 16 additions and 0 deletions
|
@ -34,6 +34,12 @@ class Service abstract
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual play Name GetName(String request, string stringArg = "", int intArg = 0, double doubleArg = 0, Object objectArg = null, Name nameArg = '')
|
||||||
|
{
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// UI variants
|
// UI variants
|
||||||
virtual ui String GetStringUI(String request, string stringArg = "", int intArg = 0, double doubleArg = 0, Object objectArg = null)
|
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;
|
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
|
// data/clearscope variants
|
||||||
virtual clearscope String GetStringData(String request, string stringArg = "", int intArg = 0, double doubleArg = 0, Object objectArg = null)
|
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;
|
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<Service> serviceName){
|
static Service Find(class<Service> serviceName){
|
||||||
return AllServices.GetIfExists(serviceName.GetClassName());
|
return AllServices.GetIfExists(serviceName.GetClassName());
|
||||||
|
|
Loading…
Reference in a new issue