Exemple #1
0
        /// <summary>
        /// Trigger a special effect
        /// </summary>
        /// <param name="keyword">The keyword denoting the effect to trigger</param>
        /// <param name="position">The (starting) position of the effect</param>
        /// <param name="direction">The direction or path of the effect</param>
        /// <returns></returns>
        public SFXTrigger Trigger(string keyword, Vector position, Vector direction)
        {
            var result = new SFXTrigger(keyword, position, direction);

            _Triggers.Add(result);
            return(result);
        }
Exemple #2
0
        /// <summary>
        /// Trigger a special effect
        /// </summary>
        /// <param name="keyword">The keyword denoting the effect to trigger</param>
        /// <returns></returns>
        public SFXTrigger Trigger(string keyword)
        {
            var result = new SFXTrigger(keyword);

            _Triggers.Add(result);
            return(result);
        }