Ejemplo n.º 1
0
 public Asset(SerializeDataStruct serializeAsset)
 {
     TypeTreeDatabase = AssetToolUtility.GenerateTypeTreeDataBase(serializeAsset);
     if (serializeAsset is SerializeAssetV15) {
         Init(serializeAsset as SerializeAssetV15);
     } else if (serializeAsset is SerializeAssetV09) {
         Init(serializeAsset as SerializeAssetV09);
     } else {
         throw new Exception("Can't init asset with " + serializeAsset);
     }
 }
Ejemplo n.º 2
0
 public static TypeTreeDataBase GenerateTypeTreeDataBase(SerializeDataStruct asset)
 {
     if (asset is SerializeAssetV09)
     {
         return(GenerateTypeTreeDataBase(asset as SerializeAssetV09));
     }
     if (asset is SerializeAssetV15)
     {
         return(GenerateTypeTreeDataBase(asset as SerializeAssetV15));
     }
     return(null);
 }
Ejemplo n.º 3
0
 public Asset(SerializeDataStruct serializeAsset)
 {
     TypeTreeDatabase = AssetToolUtility.GenerateTypeTreeDataBase(serializeAsset);
     if (serializeAsset is SerializeAssetV15)
     {
         Init(serializeAsset as SerializeAssetV15);
     }
     else if (serializeAsset is SerializeAssetV09)
     {
         Init(serializeAsset as SerializeAssetV09);
     }
     else
     {
         throw new Exception("Can't init asset with " + serializeAsset);
     }
 }
Ejemplo n.º 4
0
 public static TypeTreeDataBase GenerateTypeTreeDataBase(SerializeDataStruct asset)
 {
     if (asset is SerializeAssetV09) {
         return GenerateTypeTreeDataBase(asset as SerializeAssetV09);
     }
     if (asset is SerializeAssetV15) {
         return GenerateTypeTreeDataBase(asset as SerializeAssetV15);
     }
     return null;
 }