상속: SectionEffect
예제 #1
0
파일: Tree.cs 프로젝트: rbergen/R136.NET
        public override StringValues ProgressStatus()
        {
            List <string> texts = new();

            var statusTexts = GetTextsForStatus(Status);

            if (statusTexts.Count > 0)
            {
                texts.AddRange(statusTexts);
            }

            if (Status == AnimateStatus.Operating)
            {
                if (!(Player?.IsInPosession(ItemID.HeatSuit) ?? false))
                {
                    statusTexts = GetTextsForStatus(AnimateStatus.SelfInjury);
                    if (statusTexts.Count > 0)
                    {
                        texts.AddRange(statusTexts);
                    }
                }

                Burned?.Invoke();

                Status = AnimateStatus.Done;
            }

            return(texts.Count > 0 ? texts.ToArray() : null);
        }
예제 #2
0
 // Уничтожает дерево
 public void Burn()
 {
     state.Burn(this);
     Burned?.Invoke(this, new BurnTreeEventArgs());
 }
예제 #3
0
 private void BurnedHandler(object sender, PokemonEventArgs e)
 {
     Burned?.Invoke(this, EventArgs);
 }