Example #1
0
        public void RemoveContainerVisibility(IPlayerSession session)
        {
            if (!_seesThroughContainers.Remove(session))
            {
                return;
            }

            var message = new PlayerContainerVisibilityMessage(false);

            RaiseNetworkEvent(message, session.ConnectedClient);
        }
Example #2
0
 private void HandleContainerVisibilityMessage(PlayerContainerVisibilityMessage ev)
 {
     _playerCanSeeThroughContainers = ev.CanSeeThrough;
 }