Print() public method

public Print ( byte player, string text ) : void
player byte
text string
return void
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #3
0
 public void PrintReq(string text)
 {
     _broadcaster.Print(_clients[_sender].Id, text);
 }
Beispiel #4
0
 public void PrintReq(string text)
 {
     _broadcaster.Print(State.Instance.GetPlayer(_sender).Id, text);
 }