static void TryPreloadWeapon(BlueprintRef assetId, Gender gender, Race race)
        {
            if (string.IsNullOrEmpty(assetId))
            {
                return;
            }
            var item = ResourcesLibrary.TryGetBlueprint <BlueprintItemEquipment>(assetId);

            item?.EquipmentEntity?.Preload(gender, race);
        }
        static void TryPreloadKEE(BlueprintRef assetId, Gender gender, Race race)
        {
            if (string.IsNullOrEmpty(assetId))
            {
                return;
            }
            var link = ResourcesLibrary.TryGetBlueprint <KingmakerEquipmentEntity>(assetId);

            if (link != null)
            {
                link.Preload(gender, race);
            }
        }
        public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
        {
            if (reader.TokenType == JsonToken.Null)
            {
                return(null);
            }
            var text = reader.Value as string;

            if (objectType == typeof(BlueprintRef))
            {
                BlueprintRef result = text;
                return(result);
            }
            else
            {
                ResourceRef result = text;
                return(result);
            }
        }