Beispiel #1
0
        /// <summary>
        /// コンストラクター
        /// </summary>
        public DatAnniversaryDays()
        {
            //AnniversaryDaysList = new List<MsgTopic>();

            //1時間前の時刻をセット(最初に強制取得するため)
            this.LastUpdateTime = LpsDatetimeUtil.enc(DateTime.Now.AddHours(-1));
        }
Beispiel #2
0
        //====================================================================
        //
        //                             初期化処理
        //
        //====================================================================
        #region 初期化処理
        /// <summary>
        /// コンストラクター
        /// </summary>
        public DatWether()
        {
            //天気データ初期化
            this.WetherList = new List <ResLpsWeatherInfo60>();

            //1時間前の時刻をセット(最初に強制取得するため)
            this.LastUpdateTime = LpsDatetimeUtil.enc(DateTime.Now.AddHours(-1));
        }
Beispiel #3
0
        /// <summary>
        /// データロードする
        /// </summary>
        public void DataLoad()
        {
            if (this.InfoLocation == null)
            {
                this.InfoLocation = new DatLocation();
            }
            if (this.InfoWether == null)
            {
                this.InfoWether = new DatWether();
            }
            if (this.NewTopic == null)
            {
                this.NewTopic = new DatNewTopic();
            }
            if (this.InfoAnniversary == null)
            {
                this.InfoAnniversary = new DatAnniversaryDays();
            }
            if (this.NewsList == null)
            {
                this.NewsList = new DatNewsList();
            }
            if (this.NewTopic.TalkTopicList == null)
            {
                this.NewTopic.TalkTopicList = new LpsQueue <MsgTopic>();
            }
            if (this.NewTopic.InterruptTopicList == null)
            {
                this.NewTopic.InterruptTopicList = new LpsQueue <MsgTopic>();
            }
            this.EnvironmentInfo = new DatEnvironmentInfomation();                 //環境情報初期化

            //天気情報は常に最新を取る
            this.InfoWether.LastUpdateTime = LpsDatetimeUtil.enc(DateTime.Now.AddMinutes(-70));

            //本日情報は常に最新を取る
            this.InfoAnniversary.LastUpdateTime = LpsDatetimeUtil.enc(DateTime.Now.AddMinutes(-70));

            //ニュースリストは常に最新を取る
            this.NewsList.LastUpdateTime = LpsDatetimeUtil.enc(DateTime.Now.AddMinutes(-70));

            //地域データは常に最新を取る
            this.InfoLocation.LastUpdateTime = LpsDatetimeUtil.enc(DateTime.Now.AddMinutes(-70));

            //最終解放日時
            this.LastRunReleaseProcessing = DateTime.Now;

            //保持件数が少ない場合は更新時刻を初期化する
            this.NewTopic.InitLastUpdateTime();

            //ペンディングフォルス設定
            this.EnvironmentInfo.SetPendingOff();
        }
    /// <summary>
    /// 開始時処理
    /// </summary>
    void Start()
    {
        //データロード
        Load();

        if (LiplisStatus.Instance.NewTopic.TalkTopicList == null)
        {
            LiplisStatus.Instance.NewTopic.TalkTopicList = new LpsQueue <MsgTopic>();
        }
        if (LiplisStatus.Instance.NewTopic.InterruptTopicList == null)
        {
            LiplisStatus.Instance.NewTopic.InterruptTopicList = new LpsQueue <MsgTopic>();
        }

        //背景ゲームオブジェクト取得
        this.BackGround     = GameObject.Find("CanvasBackGround");
        this.ctrlBackground = this.BackGround.GetComponent <CtrlBackGroundImage>();

        //天気情報は常に最新を取る
        LiplisStatus.Instance.InfoWether.LastUpdateTime = LpsDatetimeUtil.enc(DateTime.Now.AddMinutes(-70));

        //ニュースリストは常に最新を取る
        LiplisStatus.Instance.NewsList.LastUpdateTime = LpsDatetimeUtil.enc(DateTime.Now.AddMinutes(-70));

        //地域データは常に最新を取る
        LiplisStatus.Instance.InfoLocation.LastUpdateTime = LpsDatetimeUtil.enc(DateTime.Now.AddMinutes(-70));

        //最終解放日時
        LiplisStatus.Instance.LastRunReleaseProcessing = DateTime.Now;

        //保持件数が少ない場合は更新時刻を初期化する
        LiplisStatus.Instance.NewTopic.InitLastUpdateTime();

        //ペンディングフォルス設定
        LiplisStatus.Instance.EnvironmentInfo.SetPendingOff();

        //定周期ループスタート
        StartCoroutine(DacaCollectTimerTick());
    }