New IO structure, unexpexted error in C code

This commit is contained in:
Nitload
2023-06-22 03:33:24 +08:00
parent 50b4965e54
commit ee8132c149
172 changed files with 1344 additions and 4023 deletions
+1 -5
View File
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Entities
namespace StgSharp.Entities
{
public abstract class BehaviorArgs
{
+4 -5
View File
@@ -1,10 +1,9 @@
using System;
using System.Collections.Generic;
using System.Text;
using StgSharp.Control;
using System;
namespace StgSharp.Entities
{
public class EliteEnemy:IEntity
public class EliteEnemy : IEntity
{
public bool _selectalbe;
@@ -20,7 +19,7 @@ namespace StgSharp.Entities
{
_dieBulletLauncher.Launch();
_awardLauncher.Launch();
this._id.Remove();
TimeLine._currentPool._enemyContainer.Remove(this);
}
internal override void OnRenderFrame()
+2 -4
View File
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using StgSharp.Control;
namespace StgSharp.Entities
{
@@ -20,7 +18,7 @@ namespace StgSharp.Entities
{
_dieBulletLauncher.Launch();
_awardLauncher.Launch();
this._id.Remove();
TimeLine._currentPool._enemyContainer.Remove(this);
}
internal override void OnRenderFrame()
@@ -1,11 +1,7 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Entities
namespace StgSharp.Entities
{
public abstract class EntityPartical : IEntity
{
}
}
+6 -9
View File
@@ -1,12 +1,9 @@
using StgSharp.Math;
using StgSharp.Geometries;
using System;
using System.Collections.Generic;
using System.Text;
using StgSharp.Geometries;
using StgSharp.Math;
namespace StgSharp
{
public abstract class IEntity:INode<IEntity>
public abstract class IEntity
{
internal Point _pos;
internal LinkedList<IPlainGeometry> _collisionBox;
@@ -17,7 +14,7 @@ namespace StgSharp
internal GetLocationHandler _movHandler;
protected uint _bornTick;
public LinkedList<IPlainGeometry> CollisionBox
public LinkedList<IPlainGeometry> CollisionBox
{
get { return _collisionBox; }
set { _collisionBox = value; }
@@ -26,10 +23,10 @@ namespace StgSharp
/// <summary>
/// A sensor used for cheking out if a bullet hit a player or something else
/// </summary>
public Sensor<IPlainGeometry> CollisionSensor
public Sensor<IPlainGeometry> CollisionSensor
{
get { return _collisionSensor; }
set { _collisionSensor = value; }
set { _collisionSensor = value; }
}
public string Texture { get; set; }
+4 -7
View File
@@ -1,12 +1,9 @@
using StgSharp.Entities;
using StgSharp.Math;
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp
{
public class Launcher<T>:INode<Launcher<T>> where T : IEntity
public class Launcher<T> where T : IEntity
{
/*
*用于发射其他的实体,主要是子弹 和 掉落物
@@ -23,12 +20,12 @@ namespace StgSharp
set { _bulletSample = value; }
}
internal virtual void Launch( )
internal virtual void Launch()
{
}
}
}
+1 -4
View File
@@ -1,7 +1,4 @@
using StgSharp.Math;
using System;
using System.Collections.Generic;
using System.Text;
using System;
namespace StgSharp
{
+1 -7
View File
@@ -1,10 +1,4 @@
using StgSharp.Math;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
namespace StgSharp
namespace StgSharp
{
public abstract class Player : IEntity
{