SetSession() private method

private SetSession ( ClientSession clientSession ) : void
clientSession ClientSession
return void
コード例 #1
0
ファイル: ClientSession.cs プロジェクト: PsykoBoss/OpenNos
        public void SetCharacter(Character character)
        {
            Character = character;

            // register WCF events
            ServiceFactory.Instance.CommunicationCallback.CharacterConnectedEvent    += CommunicationCallback_CharacterConnectedEvent;
            ServiceFactory.Instance.CommunicationCallback.CharacterDisconnectedEvent += CommunicationCallback_CharacterDisconnectedEvent;

            HasSelectedCharacter = true;

            // register for servermanager
            ServerManager.Instance.RegisterSession(this);
            Character.SetSession(this);
        }
コード例 #2
0
        public void SetCharacter(Character character)
        {
            Character = character;

            // register WCF events
            ServerCommunicationClient.Instance.CharacterConnectedEvent    += OnOtherCharacterConnected;
            ServerCommunicationClient.Instance.CharacterDisconnectedEvent += OnOtherCharacterDisconnected;

            HasSelectedCharacter = true;

            // register for servermanager
            ServerManager.Instance.RegisterSession(this);
            Character.SetSession(this);
        }
コード例 #3
0
ファイル: ClientSession.cs プロジェクト: vvmaja/OpenNos
        public void SetCharacter(Character character)
        {
            Character = character;

            // register events
            CommunicationServiceClient.Instance.CharacterConnectedEvent    += OnOtherCharacterConnected;
            CommunicationServiceClient.Instance.CharacterDisconnectedEvent += OnOtherCharacterDisconnected;

            HasSelectedCharacter = true;

            // register for servermanager
            ServerManager.Instance.RegisterSession(this);
            Character.SetSession(this);
            Character.Buff = new ConcurrentBag <Buff>();
        }
コード例 #4
0
ファイル: ClientSession.cs プロジェクト: OpenNos/OpenNos
        public void SetCharacter(Character character)
        {
            Character = character;

            // register WCF events
            ServiceFactory.Instance.CommunicationCallback.CharacterConnectedEvent += CommunicationCallback_CharacterConnectedEvent;
            ServiceFactory.Instance.CommunicationCallback.CharacterDisconnectedEvent += CommunicationCallback_CharacterDisconnectedEvent;

            HasSelectedCharacter = true;

            // register for servermanager
            ServerManager.Instance.RegisterSession(this);
            Character.SetSession(this);
        }