From 81a90d729e7fa8141eb829a2e6e03e71398f6555 Mon Sep 17 00:00:00 2001 From: Mr-Ojii Date: Mon, 19 Aug 2024 23:01:42 +0900 Subject: [PATCH] =?UTF-8?q?ChipEffect=E3=81=AE=E6=8C=99=E5=8B=95=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Stages/07.Game/Taiko/CActChipEffects.cs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/TJAPlayer3-f/src/Stages/07.Game/Taiko/CActChipEffects.cs b/TJAPlayer3-f/src/Stages/07.Game/Taiko/CActChipEffects.cs index c2fe7ccf..b9e062c7 100644 --- a/TJAPlayer3-f/src/Stages/07.Game/Taiko/CActChipEffects.cs +++ b/TJAPlayer3-f/src/Stages/07.Game/Taiko/CActChipEffects.cs @@ -18,12 +18,13 @@ public virtual void Start(int nPlayer, int Lane) for (int i = 0; i < 128; i++) { - if (!st[i].b使用中) + var si = chipEffects[i]; + if (!si.b使用中) { - st[i].b使用中 = true; - st[i].ct進行 = new CCounter(0, TJAPlayer3.app.Skin.SkinConfig.Game.Effect.NotesFlash.Ptn, TJAPlayer3.app.Skin.SkinConfig.Game.Effect.NotesFlash.Timer, TJAPlayer3.app.Timer); - st[i].nプレイヤー = nPlayer; - st[i].Lane = Lane; + si.b使用中 = true; + si.ct進行 = new CCounter(0, TJAPlayer3.app.Skin.SkinConfig.Game.Effect.NotesFlash.Ptn, TJAPlayer3.app.Skin.SkinConfig.Game.Effect.NotesFlash.Timer, TJAPlayer3.app.Timer); + si.nプレイヤー = nPlayer; + si.Lane = Lane; break; } } @@ -35,7 +36,7 @@ public override void On活性化() { for (int i = 0; i < 128; i++) { - st[i] = new STチップエフェクト + chipEffects[i] = new CChipEffect { b使用中 = false, ct進行 = new CCounter() @@ -47,8 +48,8 @@ public override void On非活性化() { for (int i = 0; i < 128; i++) { - st[i].ct進行 = null; - st[i].b使用中 = false; + chipEffects[i].ct進行 = null; + chipEffects[i].b使用中 = false; } base.On非活性化(); } @@ -56,7 +57,7 @@ public override int On進行描画() { for (int i = 0; i < 128; i++) { - var si = st[i]; + var si = chipEffects[i]; if (!si.b使用中 || si.ct進行 == null) continue; @@ -96,15 +97,14 @@ public override int On進行描画() #region [ private ] //----------------- - [StructLayout(LayoutKind.Sequential)] - private struct STチップエフェクト + private class CChipEffect { public bool b使用中; public CCounter? ct進行; public int nプレイヤー; public int Lane; } - private STチップエフェクト[] st = new STチップエフェクト[128]; + private CChipEffect[] chipEffects = new CChipEffect[128]; //----------------- #endregion }