daily update on 20241002 by nitload youmu, intrinsic function rebuild, syntax style arrange

This commit is contained in:
Nitload
2024-10-03 04:03:06 +08:00
parent 0979123ac0
commit 6e2f93b053
265 changed files with 26732 additions and 19058 deletions
@@ -43,15 +43,14 @@ namespace StgSharp.Geometries
public class ParticleOnPlain : IInstancing, IPlainEntity
{
public ParticleOnPlain(PlainInstancingBuffer<ParticleOnPlain> buffer)
public ParticleOnPlain( PlainInstancingBuffer<ParticleOnPlain> buffer )
{
if (buffer == null)
{
throw new ArgumentNullException(paramName: nameof(buffer));
if( buffer == null ) {
throw new ArgumentNullException( paramName: nameof( buffer ) );
}
GlobalBuffer = buffer;
BufferId = buffer.CreateInstanceID();
((IInstancingBuffer)buffer).InstanceList.Add(this);
( ( IInstancingBuffer )buffer ).InstanceList.Add( this );
}
public GeometryMotion Motion
@@ -72,21 +71,20 @@ namespace StgSharp.Geometries
set;
}
vec3d IInstancing.CenterPositionGlobal
Vec3 IInstancing.CenterPositionGlobal
{
get;
set;
}
bool IPlainEntity.CollideWith(IPlainEntity entity)
bool IPlainEntity.CollideWith( IPlainEntity entity )
{
throw new NotImplementedException();
}
vec2d IPlainEntity.CenterPosition
Vec2 IPlainEntity.CenterPosition
{
get => GlobalBuffer.CoordAndRotationList[BufferId].XY;
get => GlobalBuffer.CoordAndRotationList[ BufferId ].XY;
set => throw new NotImplementedException();
}