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); }
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); }
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>(); }