From 019db004c7d089fb34971e39ee19d7a420cf688b Mon Sep 17 00:00:00 2001 From: AkasokoPullyou <46102635+AkasokoPullyou@users.noreply.github.com> Date: Mon, 2 Mar 2020 17:50:40 +0900 Subject: [PATCH] =?UTF-8?q?BPM=E3=81=AE=E5=80=A4=E3=81=8C=E3=83=9E?= =?UTF-8?q?=E3=82=A4=E3=83=8A=E3=82=B9(=E8=B2=A0=E3=81=AE=E6=95=B0)?= =?UTF-8?q?=E6=99=82=E3=81=AB=E3=83=95=E3=83=AA=E3=83=BC=E3=82=BA=E3=81=97?= =?UTF-8?q?=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86=E3=81=AE=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../00.\345\205\261\351\200\232/CCounter.cs" | 33 +++++++++++++++---- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git "a/FDK19/\343\202\263\343\203\274\343\203\211/00.\345\205\261\351\200\232/CCounter.cs" "b/FDK19/\343\202\263\343\203\274\343\203\211/00.\345\205\261\351\200\232/CCounter.cs" index 77e86b094..9cb11e15a 100644 --- "a/FDK19/\343\202\263\343\203\274\343\203\211/00.\345\205\261\351\200\232/CCounter.cs" +++ "b/FDK19/\343\202\263\343\203\274\343\203\211/00.\345\205\261\351\200\232/CCounter.cs" @@ -63,7 +63,28 @@ public double db現在の経過時間 get; set; } - + public int _n間隔ms + { + get + { + return this.n間隔ms; + } + set + { + this.n間隔ms = value >= 0 ? value : value * -1; + } + } + public double _db間隔 + { + get + { + return this.db間隔; + } + set + { + this.db間隔 = value >= 0 ? value : value * -1; + } + } // 状態プロパティ @@ -116,13 +137,13 @@ public CCounter() this.timer = null; this.n開始値 = 0; this.n終了値 = 0; - this.n間隔ms = 0; + this._n間隔ms = 0; this.n現在の値 = 0; this.n現在の経過時間ms = CTimer.n未使用; this.db開始値 = 0; this.db終了値 = 0; - this.db間隔 = 0; + this._db間隔 = 0; this.db現在の値 = 0; this.db現在の経過時間 = CSoundTimer.n未使用; } @@ -155,7 +176,7 @@ public void t開始( int n開始値, int n終了値, int n間隔ms, CTimer timer { this.n開始値 = n開始値; this.n終了値 = n終了値; - this.n間隔ms = n間隔ms; + this._n間隔ms = n間隔ms; this.timer = timer; this.n現在の経過時間ms = this.timer.n現在時刻; this.n現在の値 = n開始値; @@ -172,7 +193,7 @@ public void t開始( double db開始値, double db終了値, double db間隔, CS { this.db開始値 = db開始値; this.db終了値 = db終了値; - this.db間隔 = db間隔; + this._db間隔 = db間隔; this.timerdb = timer; this.db現在の経過時間 = this.timerdb.dbシステム時刻; this.db現在の値 = db開始値; @@ -345,4 +366,4 @@ public void tキー反復( bool bキー押下, DGキー処理 tキー処理 ) //----------------- #endregion } -} \ No newline at end of file +}