-system name getter
-added error checking for event handling in registerSystem -now only valid handleEvent() functions are taken by system during register
This commit is contained in:
parent
f27e4c30ad
commit
dfdb56d501
3 changed files with 43 additions and 17 deletions
|
|
@ -74,6 +74,14 @@ struct System
|
|||
return m_id;
|
||||
}
|
||||
|
||||
/************************************************************************************************************************
|
||||
*Get system name.
|
||||
*/
|
||||
export const (char)[] name() nothrow @nogc
|
||||
{
|
||||
return cast(const (char)[])m_name;
|
||||
}
|
||||
|
||||
struct EventCaller
|
||||
{
|
||||
ushort id;
|
||||
|
|
@ -97,7 +105,7 @@ package:
|
|||
int m_pass;
|
||||
|
||||
///system name
|
||||
char[] name;
|
||||
char[] m_name;
|
||||
|
||||
///required components
|
||||
ushort[] m_components;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue