#pragma warning restore IDE0044 #pragma warning restore CS0649 /// <summary> /// Highlights all critters matching this critter type on the active world. /// </summary> /// <param name="color">The color to highlight the critters.</param> internal void HighlightAllMatching(Color color) { var type = CritterType; int id = ClusterManager.Instance.activeWorldId; CritterInventoryUtils.GetCritters(id, (kpid) => { if (kpid.GetCritterType() == type) { PGameUtils.HighlightEntity(kpid, color); } }); }
/// <summary> /// Highlights all critters matching this critter type on the active world. /// </summary> /// <param name="color">The color to highlight the critters.</param> /// <param name="species">The species type to highlight.</param> internal void HighlightAllMatching(Color color) { var type = CritterType; int id = ClusterManager.Instance.activeWorldId; CritterInventoryUtils.GetCritters(id, (creature) => { if (creature.GetCritterType() == type) { PGameUtils.HighlightEntity(creature, color); } }, entry.Resource); }