IBodyModifier - SmArtKar/AthenaFramework GitHub Wiki

IBodyModifier is an interface used to modify bodytypes of the linked pawns. Custom apparel body comp is implemented via this interface.

    public interface IBodyModifier
    {
        public abstract bool PreventBodytype(BodyTypeDef bodyType);

        public abstract bool HideBody { get; }

        public abstract bool HideHead { get; }

        public abstract bool HideHair { get; }

        public abstract bool HideFur { get; }

        public abstract bool CustomBodytype(ref BodyTypeDef bodyType);

        public abstract bool CustomHeadtype(ref HeadTypeDef headType);

        public abstract void FurMat(Rot4 facing, bool portrait, bool cached, ref Material furMat);

        // Must be added to AthenaCache.bodyCache to work
        // AthenaCache.AddCache(this, AthenaCache.bodyCache, pawn.thingIDNumber)
    }