OpenNos.GameObject.Character.SetSession C# (CSharp) Method

SetSession() private method

private SetSession ( ClientSession clientSession ) : void
clientSession ClientSession
return void
        internal void SetSession(ClientSession clientSession)
        {
            Session = clientSession;
        }

Usage Example

Example #1
0
        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);
        }
All Usage Examples Of OpenNos.GameObject.Character::SetSession
Character