1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-30 22:17:13 +02:00

Implement option to retrieve the manager associated with a command and the number of commands managed by a manager.

This commit is contained in:
Sandu Liviu Catalin
2016-07-03 03:44:44 +03:00
parent dde8890941
commit 1963c8e636
2 changed files with 28 additions and 0 deletions

View File

@ -1024,6 +1024,7 @@ void Register(HSQUIRRELVM vm)
.SquirrelFunc(_SC("_typename"), &Manager::Typename)
.Func(_SC("_tostring"), &Manager::ToString)
// Member Properties
.Prop(_SC("Count"), &Manager::GetCount)
.Prop(_SC("IsContext"), &Manager::IsContext)
.Prop(_SC("OnFail"), &Manager::GetOnFail)
.Prop(_SC("OnFail"), &Manager::GetOnFail)
@ -1067,6 +1068,7 @@ void Register(HSQUIRRELVM vm)
.Func(_SC("_tostring"), &Listener::ToString)
// Member Properties
.Prop(_SC("Attached"), &Listener::Attached)
.Prop(_SC("Manager"), &Listener::GetManager)
.Prop(_SC("Name"), &Listener::GetName, &Listener::SetName)
.Prop(_SC("Spec"), &Listener::GetSpec, &Listener::SetSpec)
.Prop(_SC("Specifier"), &Listener::GetSpec, &Listener::SetSpec)