예제 #1
0
        /// <summary>
        /// Method by which this entity has output (from commands and events) "shown" to it
        /// </summary>
        public virtual bool WriteTo(IEnumerable <string> output, bool delayed = false)
        {
            //null output means send wrapper to players
            if (output == null)
            {
                if (IsPlayer())
                {
                    var thisPlayer = (IPlayer)this;

                    thisPlayer.Descriptor.SendWrapper();
                }

                return(true);
            }

            IEnumerable <string> strings = MessagingUtility.TranslateColorVariables(output.ToArray(), this);

            return(TriggerAIAction(strings));
        }
예제 #2
0
        /// <summary>
        /// Method by which this entity has output (from commands and events) "shown" to it
        /// </summary>
        public virtual bool WriteTo(IEnumerable <string> input)
        {
            IEnumerable <string> strings = MessagingUtility.TranslateColorVariables(input.ToArray(), this);

            return(TriggerAIAction(strings));
        }