Exemplo n.º 1
0
        public static void Emote(Player player, string text = "")
        {
            if (player == null)
            {
                throw new ArgumentNullException($"{MethodBase.GetCurrentMethod().ReflectedType.Name}, null player");
            }
            if (text == null)
            {
                text = "";
            }
            if (text == "")
            {
                text = "likes swords.";
            }

            if (player.IsAlive)
            {
                text = text.Trim();
                text = TextUtils.CheckForPunctuation(text);

                GameEngine.SayToLocation(player.Location, $"{player.Name} {text}");
            }
        }