void Regulus.Utility.ICore.ObtainController(Regulus.Remoting.ISoulBinder binder) { binder.Bind <TestNativeGameCore.IMessager>(this); binder.BreakEvent += () => { binder.Unbind <TestNativeGameCore.IMessager>(this); }; }
public Core(Regulus.Remoting.ISoulBinder binder, IStorage storage, IMap zone , Battle.IZone battle) { _Battle = battle; _Zone = zone; Storage = storage; _Binder = binder; _Binder.Bind<IUserStatus>(this); _StageMachine = new Regulus.Game.StageMachine(); binder.BreakEvent += _OnInactive; _StatusEvent += (s) => { }; }