32 lines
787 B
C#
32 lines
787 B
C#
using StgSharp.Entities;
|
|
using StgSharp.Math;
|
|
|
|
namespace StgSharp
|
|
{
|
|
public class Launcher<T> where T : IEntity
|
|
{
|
|
/*
|
|
*用于发射其他的实体,主要是子弹 和 掉落物
|
|
*/
|
|
|
|
internal Vec2d _center; //发射器的参考位置,运动轨迹的方程应当基于这个参考点构建
|
|
internal Counter<int> _internalParameter; //发射器的内部计时器
|
|
internal EntityPartical _bulletSample; //发射的子弹类型
|
|
internal uint[] launchtick; //发射子弹的内部计时
|
|
|
|
public EntityPartical Bullet
|
|
{
|
|
get { return _bulletSample; }
|
|
set { _bulletSample = value; }
|
|
}
|
|
|
|
internal virtual void Launch()
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|