Print() public method

public Print ( byte player, string text ) : void
player byte
text string
return void
Ejemplo n.º 1
0
        public void PrintReq(string text)
        {
            var player = State.Instance.GetPlayer(_sender);

            if (player.IsSpectator && _gameSettings.MuteSpectators)
            {
                player.Rpc.Error(L.D.ServerMessage__SpectatorsMuted);
                return;
            }
            _broadcaster.Print(player.Id, text);
        }
Ejemplo n.º 2
0
        public void PrintReq(string text)
        {
            var player = State.Instance.GetPlayer(_sender);

            if (player.IsSpectator && _gameSettings.MuteSpectators)
            {
                player.Rpc.Error("You cannot chat, the host has muted spectators.");
                return;
            }
            _broadcaster.Print(player.Id, text);
        }
Ejemplo n.º 3
0
 public void PrintReq(string text)
 {
     _broadcaster.Print(_clients[_sender].Id, text);
 }
Ejemplo n.º 4
0
 public void PrintReq(string text)
 {
     _broadcaster.Print(State.Instance.GetPlayer(_sender).Id, text);
 }