Skip to content

IPreventEquip

SmArtKar edited this page Feb 8, 2023 · 1 revision

IPreventEquip allows to prevent objects with CompEquippable from being equipped by pawns

    public interface IPreventEquip
    {
        public abstract bool PreventEquip(Pawn pawn, out string cantReason);

        // Must be added to AthenaCache.equipCache to work
        // AthenaCache.AddCache(this, AthenaCache.equipCache, parent.thingIDNumber)
    }

Clone this wiki locally