mirror of https://github.com/ZDoom/gzdoom.git
Added GetName(UI/Data) to Service class.
This commit is contained in:
parent
4b49d9d185
commit
0c9bd9282c
|
@ -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)
|
||||
{
|
||||
|
@ -76,6 +87,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<Service> serviceName){
|
||||
return AllServices.GetIfExists(serviceName.GetClassName());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue