コード例 #1
0
		/** リクエスト。ロード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;
		}
コード例 #2
0
        /** リクエスト。ロード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);
        }
コード例 #3
0
        /** リクエスト。ロードアセットバンドルアイテム。プレハブファイル。
         */
        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);
        }
コード例 #4
0
        /** リクエスト。ロードストリーミングアセット。テクスチャファイル。
         */
        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);
        }
コード例 #5
0
ファイル: Main_Io.cs プロジェクト: bluebackblue/fee_core
        /** リクエスト。セーブローカル。バイナリファイル。
         */
        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);
        }
コード例 #6
0
        /** 実行。ロードストリーミングアセット。テクスチャファイル。
         */
        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;
            }
        }
コード例 #7
0
        /** リクエスト。セーブローカル。テクスチャファイル。
         */
        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);
        }
コード例 #8
0
        /** リクエスト。ロードアセットパス。テキストファイル。
         */
        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);
        }
コード例 #9
0
            /** constructor
             */
            public ResultType()
            {
                //asset_file
                this.asset_file = null;

                //errorstring
                this.errorstring = null;

                //responseheader
                this.responseheader = null;
            }
コード例 #10
0
        /** 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;
        }
コード例 #11
0
        /** 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;
        }
コード例 #12
0
        /** 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;
        }
コード例 #13
0
        /** 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;
        }
コード例 #14
0
ファイル: Item.cs プロジェクト: bluebackblue/jsontest
        /** 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;
        }
コード例 #15
0
        /** 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;
        }
コード例 #16
0
		/** 実行。ロード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;
			}
		}
コード例 #17
0
ファイル: Item.cs プロジェクト: bluebackblue/fee_core
		/** リセット。
		*/
		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;
		}
コード例 #18
0
        /** 実行。ロード。
         */
        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;
            }
        }
コード例 #19
0
        /** 実行。ロードアンドロイドコンテンツ。テクスチャファイル。
         */
        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;
            }
        }
コード例 #20
0
        /** リクエスト。ロードリソース。プレハブファイル。
         */
        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);
        }
コード例 #21
0
        /** リクエスト。ロード。
         */
        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);
        }
コード例 #22
0
        /** リクエスト。ロードアンドロイドコンテンツ。テクスチャファイル。
         */
        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);
        }
コード例 #23
0
        /** 実行。ロードアセットパス。テキストファイル。
         */
        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;
            }
        }
コード例 #24
0
        /** 実行。ロードフルパス。バイナリファイル。
         */
        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;
            }
        }
コード例 #25
0
 /** 結果。アセット。設定。
  */
 public void SetResultAsset(Fee.Asset.Asset a_asset)
 {
     this.result_type  = ResultType.Asset;
     this.result_asset = a_asset;
 }