Print() public méthode

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