示例#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());
 }
 private void BurnedHandler(object sender, PokemonEventArgs e)
 {
     Burned?.Invoke(this, EventArgs);
 }