コード例 #1
0
#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);
                }
            });
        }
コード例 #2
0
        /// <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);
        }