Skip to content

Commit

Permalink
ChipEffectの挙動を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Ojii committed Aug 19, 2024
1 parent f0a265c commit 81a90d7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions TJAPlayer3-f/src/Stages/07.Game/Taiko/CActChipEffects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand All @@ -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()
Expand All @@ -47,16 +48,16 @@ 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非活性化();
}
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;

Expand Down Expand Up @@ -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
}

0 comments on commit 81a90d7

Please sign in to comment.