Files
SlaveMatrix-SDL/SlaveMatrix/SlaveMatrix/BodyPartClasses/スタンプB.cs
2025-05-07 10:45:18 -07:00

100 lines
2.1 KiB
C#

using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using _2DGAMELIB;
namespace SlaveMatrix
{
public class B : Stamp
{
private Mot ;
public override void Draw(Are Are)
{
try
{
if (sta.Count <= 0)
{
return;
}
foreach (sep stum in sta)
{
if (stum.Sta.)
{
p = stum.Ele..Current.GetPar(stum.Path);
stum.Sta.B = p.ToGlobal(stum.Pos);
stum.Sta.();
stum.Sta..Draw(Are);
}
}
}
catch
{
}
}
public void Add(Vector2D cp, Color hc, Dictionary<Ele, List<Ele>> )
{
he = Bod.GetHitEle(hc);
if (2(he))
{
if (sta.Count >= 33)
{
sep = sta[0];
sta.RemoveAt(0);
sep.Sta.Dispose();
}
sep = default(sep);
sep.Sta = EleD.GetEle(Are.DisUnit, Med, Sta.GameData.);
sep.Sta.SetHitFalse();
sep.Sta.Xv = RNG.XS.NextDouble();
sep.Sta. = RNG.XS.NextBool();
sep.Ele = he;
sep.Par = he..GetHitPar_(hc);
sep.Path = sep.Par.GetPath();
sep.Pos = sep.Par.ToLocal(cp);
if (.ContainsKey(he))
{
[he].Add(sep.Sta);
}
else
{
[he] = new List<Ele> { sep.Sta };
}
sta.Add(sep);
.Start();
}
}
public B(Med Med, Are Are, Cha Cha, Bod Bod, EleD EleD, Mots Mots)
: base(Med, Are, Cha, Bod, EleD)
{
Ele e = null;
= new Mot(0.0, 1.0)
{
BaseSpeed = 1.0,
Staing = delegate(Mot m)
{
e = sta.Last().Sta;
m.Max = RNG.XS.NextDouble();
},
Runing = delegate(Mot m)
{
e.Yv = m.Value;
},
Reaing = delegate(Mot m)
{
m.End();
},
Rouing = delegate
{
},
Ending = delegate
{
}
};
Mots.Add(EleD.GetHashCode().ToString(), );
}
}
}