예제 #1
0
        /// <summary>
        /// Run an effect on the monster. Calls the effect's onStart and adds it to the current effects queue
        /// </summary>
        /// <param name="effect"></param>
        internal void AddEffect(ItemEffect effect)
        {
            Effects.Add(effect);

            effect.OnStart(this);
        }
예제 #2
0
파일: Item.cs 프로젝트: vrum/roguelike
        /// <summary>
        /// Run an effect on the monster. Calls the effect's onStart and adds it to the current effects queue
        /// </summary>
        /// <param name="effect"></param>
        internal void AddEffect(ItemEffect effect)
        {
            Effects.Add(effect);

            effect.OnStart(this);
        }