コード例 #1
0
 public override void Run(string stepName, BinaryPacker.Element el)
 {
     if (stepName.Length > 7 && StrawberryRegistry.TrackableContains(el))
     {
         stepName = "entity:strawberry";
     }
     base.Run(stepName, el);
 }
コード例 #2
0
        public override void Run(string stepName, BinaryPacker.Element el)
        {
            if (StrawberryRegistry.TrackableContains(el))
            {
                stepName = "entity:strawberry";
            }

            if (StrawberryRegistry.GetRegisteredBerries().Any(berry => berry.entityName == el.Name))
            {
                TotalStrawberriesIncludingUntracked++;
            }

            base.Run(stepName, el);
        }