Function SystemManager.register
Register a new system.
If flag
is Yes
(default), this will automatically
subscribe system
to any events for which it implements Receiver
.
Note that this will not work if system
is passed as System
-- it
should be passed as its full type.
Prototypes
void register(S)(
S system,
Order order = Order .last,
Flag!"AutoSubscribe" flag = Yes .AutoSubscribe
);
void register(S)(
S system,
Flag!"AutoSubscribe" flag
);
Throws
SystemException if the system was already registered.
Authors
Claude Merle
Copyright
© 2015-2016 Claude Merle
License
This file is part of EntitySysD.
EntitySysD is free software: you can redistribute it and/or modify it under the terms of the Lesser GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
EntitySysD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public License for more details.
You should have received a copy of the Lesser GNU General Public License along with EntitySysD. If not, see http://www.gnu.org/licenses/.