/** リクエスト。ロードURL。テクスチャファイル。 */ public bool RequestLoadUrlTextureFile(Path a_url_path,System.Collections.Generic.List<UnityEngine.Networking.IMultipartFormSection> a_post_data,Fee.File.CustomCertificateHandler a_certificate_handler) { if(this.is_busy == false){ this.is_busy = true; //is_cancel this.is_cancel = false; //request this.request_post_data = a_post_data; this.request_certificate_handler = a_certificate_handler; this.request_path = a_url_path; //result this.result_progress = 0.0f; this.result_errorstring = null; this.result_type = ResultType.None; this.result_asset = null; this.result_responseheader = null; Function.Function.GetInstance().StartCoroutine(this.DoLoadUrlTextureFile()); return true; } return false; }
/** リクエスト。ロードURL。テクスチャファイル。 */ public bool RequestLoadUrlTextureFile(Path a_url_path, UnityEngine.WWWForm a_post_data, Fee.File.CustomCertificateHandler a_certificate_handler) { if (this.is_busy == false) { this.is_busy = true; //is_cancel this.is_cancel = false; //request this.request_post_data = a_post_data; this.request_certificate_handler = a_certificate_handler; this.request_path = a_url_path; //result this.result_progress = 0.0f; this.result_errorstring = null; this.result_type = ResultType.None; this.result_asset = null; this.result_responseheader = null; Function.Function.StartCoroutine(this.DoLoadUrlTextureFile()); return(true); } return(false); }
/** リクエスト。ロードアセットバンドルアイテム。プレハブファイル。 */ public bool RequestLoadAssetBundleItemPrefabFile(string a_assetbundle_name, string a_assetname) { if (this.is_busy == false) { this.is_busy = true; //is_cancel this.is_cancel = false; //result this.result_progress = 0.0f; this.result_errorstring = null; this.result_type = ResultType.None; this.result_asset = null; //request this.request_assetbundle_name = a_assetbundle_name; this.request_assetname = a_assetname; Function.Function.GetInstance().StartCoroutine(this.DoLoadAssetBundleItemPrefabFile()); return(true); } return(false); }
/** リクエスト。ロードストリーミングアセット。テクスチャファイル。 */ public bool RequestLoadStreamingAssetsTextureFile(Path a_relative_path) { if (this.is_busy == false) { this.is_busy = true; //is_cancel this.is_cancel = false; //request this.request_post_data = null; this.request_certificate_handler = null; this.request_path = a_relative_path; //result this.result_progress = 0.0f; this.result_errorstring = null; this.result_type = ResultType.None; this.result_asset = null; this.result_responseheader = null; Function.Function.StartCoroutine(this.DoLoadStreamingAssetsTextureFile()); return(true); } return(false); }
/** リクエスト。セーブローカル。バイナリファイル。 */ public bool RequestSaveLocalBinaryFile(Fee.File.Path a_relative_path, byte[] a_binary) { if (this.is_busy == false) { this.is_busy = true; //is_cancel this.is_cancel = false; //result this.result_progress = 0.0f; this.result_errorstring = null; this.result_type = ResultType.None; this.result_asset = null; //request this.request_relative_path = a_relative_path; this.request_binary = a_binary; this.request_text = null; this.request_texture = null; Function.Function.GetInstance().StartCoroutine(this.DoSaveLocalBinaryFile()); return(true); } return(false); }
/** 実行。ロードストリーミングアセット。テクスチャファイル。 */ private System.Collections.IEnumerator DoLoadStreamingAssetsTextureFile() { //request_pathは相対パス。 Fee.File.Path t_path = Fee.File.Path.CreateStreamingAssetsPath(this.request_path); Coroutine_LoadUrlTextureFile t_coroutine = new Coroutine_LoadUrlTextureFile(); yield return(t_coroutine.CoroutineMain(this, t_path, null, null)); if (t_coroutine.result.texture_file != null) { this.result_progress = 1.0f; this.result_asset = new Asset.Asset(Asset.AssetType.Texture, t_coroutine.result.texture_file); this.result_responseheader = t_coroutine.result.responseheader; this.result_type = ResultType.Asset; yield break; } else { this.result_progress = 1.0f; this.result_errorstring = t_coroutine.result.errorstring; this.result_responseheader = t_coroutine.result.responseheader; this.result_type = ResultType.Error; yield break; } }
/** リクエスト。セーブローカル。テクスチャファイル。 */ public bool RequestSaveLocalTextureFile(Fee.File.Path a_relative_path, UnityEngine.Texture2D a_texture) { if (this.is_busy == false) { this.is_busy = true; //is_cancel this.is_cancel = false; //result this.result_progress = 0.0f; this.result_errorstring = null; this.result_type = ResultType.None; this.result_asset = null; //request this.request_relative_path = a_relative_path; this.request_binary = null; this.request_text = null; this.request_texture = a_texture; Function.Function.StartCoroutine(this.DoSaveLocalTextureFile()); return(true); } return(false); }
/** リクエスト。ロードアセットパス。テキストファイル。 */ public bool RequestLoadAssetsPathTextFile(Fee.File.Path a_relative_path) { if (this.is_busy == false) { this.is_busy = true; //is_cancel this.is_cancel = false; //result this.result_progress = 0.0f; this.result_errorstring = null; this.result_type = ResultType.None; this.result_asset = null; //request this.request_relative_path = a_relative_path; this.request_binary = null; this.request_text = null; this.request_texture = null; Function.Function.StartCoroutine(this.DoLoadAssetsPathTextFile()); return(true); } return(false); }
/** constructor */ public ResultType() { //asset_file this.asset_file = null; //errorstring this.errorstring = null; //responseheader this.responseheader = null; }
/** constructor */ public Main_AndroidContent() { this.is_busy = false; this.is_cancel = false; this.is_shutdown = false; //request this.request_path = null; //result this.result_progress = 0.0f; this.result_errorstring = null; this.result_type = ResultType.None; this.result_asset = null; }
/** constructor */ public Main_Load() { this.is_busy = false; this.is_cancel = false; this.is_shutdown = false; //request this.request_listitem = null; //result this.result_progress = 0.0f; this.result_errorstring = null; this.result_type = ResultType.None; this.result_asset = null; }
/** constructor */ public Main_Resources() { this.is_busy = false; this.is_cancel = false; this.is_shutdown = false; //request this.request_relative_path = null; //result this.result_progress = 0.0f; this.result_errorstring = null; this.result_type = ResultType.None; this.result_asset = null; }
/** constructor */ public Main_Asset() { this.is_busy = false; this.is_cancel = false; this.is_shutdown = false; //request this.request_assetbundle_name = null; this.request_assetname = null; //result this.result_progress = 0.0f; this.result_errorstring = null; this.result_type = ResultType.None; this.result_asset = null; }
/** constructor */ public Item() { //result_type this.result_type = ResultType.None; //result_progress this.result_progress = 0.0f; //result_errorstring this.result_errorstring = null; //cancel_flag this.cancel_flag = false; //result_asset this.result_asset = null; }
/** constructor */ public Main_WebRequest() { this.is_busy = false; this.is_cancel = false; this.is_shutdown = false; //request this.request_post_data = null; this.request_certificate_handler = null; this.request_path = null; //result this.result_progress = 0.0f; this.result_errorstring = null; this.result_type = ResultType.None; this.result_asset = null; this.result_responseheader = null; }
/** 実行。ロードURL。テクスチャファイル。 */ private System.Collections.IEnumerator DoLoadUrlTextureFile() { Coroutine_LoadUrlTextureFile t_coroutine = new Coroutine_LoadUrlTextureFile(); yield return t_coroutine.CoroutineMain(this,this.request_path,this.request_post_data,this.request_certificate_handler); if(t_coroutine.result.texture_file != null){ this.result_progress = 1.0f; this.result_asset =new Asset.Asset(Asset.AssetType.Texture,t_coroutine.result.texture_file); this.result_responseheader = t_coroutine.result.responseheader; this.result_type = ResultType.Asset; yield break; }else{ this.result_progress = 1.0f; this.result_errorstring = t_coroutine.result.errorstring; this.result_responseheader = t_coroutine.result.responseheader; this.result_type = ResultType.Error; yield break; } }
/** リセット。 */ public void Reset() { //result_type this.result_type = ResultType.None; //result_progress this.result_progress = 0.0f; //result_errorstring this.result_errorstring = null; //cancel_flag this.cancel_flag = false; //result_responseheader this.result_responseheader = null; //result_asset this.result_asset = null; }
/** 実行。ロード。 */ private System.Collections.IEnumerator DoLoad() { Coroutine_Load t_coroutine = new Coroutine_Load(); yield return(t_coroutine.CoroutineMain(this, this.request_listitem)); if (t_coroutine.result.asset_file != null) { this.result_progress = 1.0f; this.result_asset = t_coroutine.result.asset_file; this.result_type = ResultType.Asset; yield break; } else { this.result_progress = 1.0f; this.result_errorstring = t_coroutine.result.errorstring; this.result_type = ResultType.Error; yield break; } }
/** 実行。ロードアンドロイドコンテンツ。テクスチャファイル。 */ private System.Collections.IEnumerator DoLoadAndroidContentTextureFile() { Coroutine_LoadAndroidContentTextureFile t_coroutine = new Coroutine_LoadAndroidContentTextureFile(); yield return(t_coroutine.CoroutineMain(this, this.request_path)); if (t_coroutine.result.texture_file != null) { this.result_progress = 1.0f; this.result_asset = new Asset.Asset(Asset.AssetType.Texture, t_coroutine.result.texture_file); this.result_type = ResultType.Asset; yield break; } else { this.result_progress = 1.0f; this.result_errorstring = t_coroutine.result.errorstring; this.result_type = ResultType.Error; yield break; } }
/** リクエスト。ロードリソース。プレハブファイル。 */ public bool RequestLoadResourcesPrefabFile(Fee.File.Path a_relative_path) { if (this.is_busy == false) { this.is_busy = true; //is_cancel this.is_cancel = false; //result this.result_progress = 0.0f; this.result_errorstring = null; this.result_type = ResultType.None; this.result_asset = null; //request this.request_relative_path = a_relative_path; Function.Function.GetInstance().StartCoroutine(this.DoLoadResourcesPrefabFile()); return(true); } return(false); }
/** リクエスト。ロード。 */ public bool RequestLoad(ListItem a_listitem) { if (this.is_busy == false) { this.is_busy = true; //is_cancel this.is_cancel = false; //result this.result_progress = 0.0f; this.result_errorstring = null; this.result_type = ResultType.None; this.result_asset = null; //request this.request_listitem = a_listitem; Function.Function.GetInstance().StartCoroutine(this.DoLoad()); return(true); } return(false); }
/** リクエスト。ロードアンドロイドコンテンツ。テクスチャファイル。 */ public bool RequestLoadAndroidContentTextureFile(Path a_full_path) { if (this.is_busy == false) { this.is_busy = true; //is_cancel this.is_cancel = false; //request this.request_path = a_full_path; //result this.result_progress = 0.0f; this.result_errorstring = null; this.result_type = ResultType.None; this.result_asset = null; Function.Function.GetInstance().StartCoroutine(this.DoLoadAndroidContentTextureFile()); return(true); } return(false); }
/** 実行。ロードアセットパス。テキストファイル。 */ private System.Collections.IEnumerator DoLoadAssetsPathTextFile() { //request_relative_pathは相対パス。 Fee.File.Path t_path = Fee.File.Path.CreateAssetsPath(this.request_relative_path); Coroutine_LoadLocalTextFile t_coroutine = new Coroutine_LoadLocalTextFile(); yield return(t_coroutine.CoroutineMain(this, t_path)); if (t_coroutine.result.text_file != null) { this.result_progress = 1.0f; this.result_asset = new Asset.Asset(Asset.AssetType.Text, t_coroutine.result.text_file); this.result_type = ResultType.Asset; yield break; } else { this.result_progress = 1.0f; this.result_errorstring = t_coroutine.result.errorstring; this.result_type = ResultType.Error; yield break; } }
/** 実行。ロードフルパス。バイナリファイル。 */ private System.Collections.IEnumerator DoLoadFullPathBinaryFile() { //request_relative_pathは絶対パス。 Fee.File.Path t_path = this.request_relative_path; Coroutine_LoadLocalBinaryFile t_coroutine = new Coroutine_LoadLocalBinaryFile(); yield return(t_coroutine.CoroutineMain(this, t_path)); if (t_coroutine.result.binary_file != null) { this.result_progress = 1.0f; this.result_asset = new Asset.Asset(Asset.AssetType.Binary, t_coroutine.result.binary_file); this.result_type = ResultType.Asset; yield break; } else { this.result_progress = 1.0f; this.result_errorstring = t_coroutine.result.errorstring; this.result_type = ResultType.Error; yield break; } }
/** 結果。アセット。設定。 */ public void SetResultAsset(Fee.Asset.Asset a_asset) { this.result_type = ResultType.Asset; this.result_asset = a_asset; }