daily update on 20240528 by nitload youmu

This commit is contained in:
Nitload
2024-05-28 17:45:54 +08:00
parent de399e22c2
commit 70890e3e33
88 changed files with 10678 additions and 5761 deletions
+7 -7
View File
@@ -36,7 +36,7 @@ using System;
namespace StgSharp.Gaming
{
public abstract class Bullet : IInstancing<Bullet>, IPlainEntity
public abstract class Bullet : IInstancing, IPlainEntity
{
protected Bullet
(
@@ -53,9 +53,9 @@ namespace StgSharp.Gaming
}
GlobalBuffer = buffer;
BufferId = buffer.CreateInstanceID();
((IInstancing<Bullet>)this).Scale = scale;
((IInstancing<Bullet>)this).Coord = new vec3d( beginPosition,0);
((IInstancing<Bullet>)this).Rotation = angle;
((IInstancing)this).Scale = scale;
((IInstancing)this).Coord = new vec3d( beginPosition,0);
((IInstancing)this).Rotation = angle;
Motion = movement;
}
@@ -71,7 +71,7 @@ namespace StgSharp.Gaming
set;
}
public PlainInstancingBuffer<Bullet> GlobalBuffer
public IInstancingBuffer GlobalBuffer
{
get;
set;
@@ -83,10 +83,10 @@ namespace StgSharp.Gaming
set;
}
vec3d IInstancing<Bullet>.CenterPositionGlobal
vec3d IInstancing.CenterPositionGlobal
{
get;
set;
set;
}
public bool CollideWith(IPlainEntity entity)