public void Init( ) { _Model = Framework.ModelManager.Instance.Get <LoginModel>(); LoginServerList = new Framework.ObservableCollection <int, LoginServerInfoPresenter>(); _loginPeer = PeerManager.Instance.Get("login"); _loginPeer.RegisterMessage <gamedef.PeerConnected>(obj => { Msg_login_PeerConnected(_loginPeer, obj as gamedef.PeerConnected); }); _loginPeer.RegisterMessage <gamedef.LoginACK>(obj => { Msg_login_LoginACK(_loginPeer, obj as gamedef.LoginACK); }); _gamePeer = PeerManager.Instance.Get("game"); _gamePeer.RegisterMessage <gamedef.PeerConnected>(obj => { Msg_game_PeerConnected(_gamePeer, obj as gamedef.PeerConnected); }); _gamePeer.RegisterMessage <gamedef.VerifyGameACK>(obj => { Msg_game_VerifyGameACK(_gamePeer, obj as gamedef.VerifyGameACK); }); }
public void Init( ) { _Model = Framework.ModelManager.Instance.Get <LoginCharBoardModel>(); LoginCharList = new Framework.ObservableCollection <int, LoginCharInfoPresenter>(); _gamePeer = PeerManager.Instance.Get("game"); _gamePeer.RegisterMessage <gamedef.CharListACK>(obj => { Msg_game_CharListACK(_gamePeer, obj as gamedef.CharListACK); }); }