static void TryPreloadEE(ResourceRef assetId, Gender gender, Race race)
 {
     if (string.IsNullOrEmpty(assetId))
     {
         return;
     }
     ResourcesLibrary.PreloadResource <EquipmentEntity>(assetId);
 }
 static void TryPreloadUnitView(ResourceRef assetId, Gender gender, Race race)
 {
     if (string.IsNullOrEmpty(assetId))
     {
         return;
     }
     ResourcesLibrary.PreloadResource <UnitEntityView>(assetId);
 }
        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);
            }
        }