Daily update on 20230413 by nitload youmu

This commit is contained in:
Nitload
2023-04-13 01:37:16 +08:00
parent 2e1b0fe351
commit de494a35e6
45 changed files with 294 additions and 206 deletions
+3 -19
View File
@@ -6,14 +6,13 @@ using System.Text;
namespace StgSharp
{
public class Launcher<T>:INode<Launcher<T>> where T : Entity
public class Launcher<T>:INode<Launcher<T>> where T : IEntity
{
/*
*用于发射其他的实体,主要是子弹 和 掉落物
*/
internal vec2d _center; //发射器的参考位置,运动轨迹的方程应当基于这个参考点构建
private ContainerNode<Launcher<T>> _id;
internal Counter<int> _internalParameter; //发射器的内部计时器
internal EntityPartical _bulletSample; //发射的子弹类型
internal uint[] launchtick; //发射子弹的内部计时
@@ -24,27 +23,12 @@ namespace StgSharp
set { _bulletSample = value; }
}
internal void Launch(Counter<uint> outerTickCounter, LinkedList<Entity> container)
internal virtual void Launch(Counter<uint> outerTickCounter, LinkedList<IEntity> container)
{
}
ContainerNode<Launcher<T>> INode<Launcher<T>>.ID
{
get { return _id; }
}
void INode<Launcher<T>>.setID(ContainerNode<Launcher<T>> id)
{
if (_id == default(ContainerNode<Launcher<T>>))
{
throw new ArgumentException();
}
else
{
_id = id;
}
}
}
}