diff --git a/Math/C/Project2/.vs/Project2/v17/.suo b/Math/C/Project2/.vs/Project2/v17/.suo
new file mode 100644
index 00000000..8254889d
Binary files /dev/null and b/Math/C/Project2/.vs/Project2/v17/.suo differ
diff --git a/Math/C/Project2/.vs/Project2/v17/Browse.VC.db b/Math/C/Project2/.vs/Project2/v17/Browse.VC.db
new file mode 100644
index 00000000..f94bf6da
Binary files /dev/null and b/Math/C/Project2/.vs/Project2/v17/Browse.VC.db differ
diff --git a/Math/C/Project2/Project2.sln b/Math/C/Project2/Project2.sln
new file mode 100644
index 00000000..755e5334
--- /dev/null
+++ b/Math/C/Project2/Project2.sln
@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.3.32825.248
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Project2", "Project2\Project2.vcxproj", "{5037D78D-38B7-4FAF-B8F2-C1CDCFA7501D}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x64 = Debug|x64
+ Debug|x86 = Debug|x86
+ Release|x64 = Release|x64
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {5037D78D-38B7-4FAF-B8F2-C1CDCFA7501D}.Debug|x64.ActiveCfg = Debug|x64
+ {5037D78D-38B7-4FAF-B8F2-C1CDCFA7501D}.Debug|x64.Build.0 = Debug|x64
+ {5037D78D-38B7-4FAF-B8F2-C1CDCFA7501D}.Debug|x86.ActiveCfg = Debug|Win32
+ {5037D78D-38B7-4FAF-B8F2-C1CDCFA7501D}.Debug|x86.Build.0 = Debug|Win32
+ {5037D78D-38B7-4FAF-B8F2-C1CDCFA7501D}.Release|x64.ActiveCfg = Release|x64
+ {5037D78D-38B7-4FAF-B8F2-C1CDCFA7501D}.Release|x64.Build.0 = Release|x64
+ {5037D78D-38B7-4FAF-B8F2-C1CDCFA7501D}.Release|x86.ActiveCfg = Release|Win32
+ {5037D78D-38B7-4FAF-B8F2-C1CDCFA7501D}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {32CEAFFA-D705-43B6-820A-1DDC3B96DEE0}
+ EndGlobalSection
+EndGlobal
diff --git a/Math/C/Project2/Project2/Project2.vcxproj b/Math/C/Project2/Project2/Project2.vcxproj
new file mode 100644
index 00000000..b8e51a36
--- /dev/null
+++ b/Math/C/Project2/Project2/Project2.vcxproj
@@ -0,0 +1,138 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+
+ 16.0
+ Win32Proj
+ {5037d78d-38b7-4faf-b8f2-c1cdcfa7501d}
+ Project2
+ 10.0
+
+
+
+ Application
+ true
+ v143
+ Unicode
+
+
+ Application
+ false
+ v143
+ true
+ Unicode
+
+
+ Application
+ true
+ v143
+ Unicode
+
+
+ Application
+ false
+ v143
+ true
+ Unicode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Level3
+ true
+ WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ true
+
+
+ Console
+ true
+
+
+
+
+ Level3
+ true
+ true
+ true
+ WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ true
+
+
+ Console
+ true
+ true
+ true
+
+
+
+
+ Level3
+ true
+ _DEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ true
+
+
+ Console
+ true
+
+
+
+
+ Level3
+ true
+ true
+ true
+ NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ true
+
+
+ Console
+ true
+ true
+ true
+
+
+
+
+
+
+
+
diff --git a/Math/C/Project2/Project2/Project2.vcxproj.filters b/Math/C/Project2/Project2/Project2.vcxproj.filters
new file mode 100644
index 00000000..afef69e8
--- /dev/null
+++ b/Math/C/Project2/Project2/Project2.vcxproj.filters
@@ -0,0 +1,17 @@
+
+
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd
+
+
+ {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
+ rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
+
+
+
\ No newline at end of file
diff --git a/Math/C/Project2/Project2/Project2.vcxproj.user b/Math/C/Project2/Project2/Project2.vcxproj.user
new file mode 100644
index 00000000..88a55094
--- /dev/null
+++ b/Math/C/Project2/Project2/Project2.vcxproj.user
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/Math/C/Project2/Project2/源.c b/Math/C/Project2/Project2/源.c
new file mode 100644
index 00000000..e69de29b
diff --git a/源代码/.vs/ProjectEvaluation/stgsharp.metadata.v5.1 b/源代码/.vs/ProjectEvaluation/stgsharp.metadata.v5.1
index f7dcbf68..34048148 100644
Binary files a/源代码/.vs/ProjectEvaluation/stgsharp.metadata.v5.1 and b/源代码/.vs/ProjectEvaluation/stgsharp.metadata.v5.1 differ
diff --git a/源代码/.vs/ProjectEvaluation/stgsharp.projects.v5.1 b/源代码/.vs/ProjectEvaluation/stgsharp.projects.v5.1
index 3a54ce4b..e0ade049 100644
Binary files a/源代码/.vs/ProjectEvaluation/stgsharp.projects.v5.1 and b/源代码/.vs/ProjectEvaluation/stgsharp.projects.v5.1 differ
diff --git a/源代码/.vs/StgSharp/DesignTimeBuild/.dtbcache.v2 b/源代码/.vs/StgSharp/DesignTimeBuild/.dtbcache.v2
index d3408c77..33ee5de0 100644
Binary files a/源代码/.vs/StgSharp/DesignTimeBuild/.dtbcache.v2 and b/源代码/.vs/StgSharp/DesignTimeBuild/.dtbcache.v2 differ
diff --git a/源代码/.vs/StgSharp/FileContentIndex/19209862-1823-45e5-b908-3c9c480a8133.vsidx b/源代码/.vs/StgSharp/FileContentIndex/19209862-1823-45e5-b908-3c9c480a8133.vsidx
deleted file mode 100644
index d3df6d03..00000000
Binary files a/源代码/.vs/StgSharp/FileContentIndex/19209862-1823-45e5-b908-3c9c480a8133.vsidx and /dev/null differ
diff --git a/源代码/.vs/StgSharp/FileContentIndex/3593c772-d2ff-41d5-8b8e-74e283a935c3.vsidx b/源代码/.vs/StgSharp/FileContentIndex/3593c772-d2ff-41d5-8b8e-74e283a935c3.vsidx
new file mode 100644
index 00000000..c0e6d023
Binary files /dev/null and b/源代码/.vs/StgSharp/FileContentIndex/3593c772-d2ff-41d5-8b8e-74e283a935c3.vsidx differ
diff --git a/源代码/.vs/StgSharp/FileContentIndex/449e0a74-9cc6-4b0e-af4a-8f8e0c78f372.vsidx b/源代码/.vs/StgSharp/FileContentIndex/449e0a74-9cc6-4b0e-af4a-8f8e0c78f372.vsidx
new file mode 100644
index 00000000..057d48e6
Binary files /dev/null and b/源代码/.vs/StgSharp/FileContentIndex/449e0a74-9cc6-4b0e-af4a-8f8e0c78f372.vsidx differ
diff --git a/源代码/.vs/StgSharp/FileContentIndex/48fa335b-668e-4f7e-85c9-ba0e354a9670.vsidx b/源代码/.vs/StgSharp/FileContentIndex/48fa335b-668e-4f7e-85c9-ba0e354a9670.vsidx
new file mode 100644
index 00000000..1fe961e1
Binary files /dev/null and b/源代码/.vs/StgSharp/FileContentIndex/48fa335b-668e-4f7e-85c9-ba0e354a9670.vsidx differ
diff --git a/源代码/.vs/StgSharp/FileContentIndex/6468942d-1b13-4146-b6e9-9b3f1d5f4286.vsidx b/源代码/.vs/StgSharp/FileContentIndex/6468942d-1b13-4146-b6e9-9b3f1d5f4286.vsidx
new file mode 100644
index 00000000..23b80211
Binary files /dev/null and b/源代码/.vs/StgSharp/FileContentIndex/6468942d-1b13-4146-b6e9-9b3f1d5f4286.vsidx differ
diff --git a/源代码/.vs/StgSharp/FileContentIndex/93357732-0de8-46ca-8526-d5b7ec791a32.vsidx b/源代码/.vs/StgSharp/FileContentIndex/93357732-0de8-46ca-8526-d5b7ec791a32.vsidx
deleted file mode 100644
index 4064406b..00000000
Binary files a/源代码/.vs/StgSharp/FileContentIndex/93357732-0de8-46ca-8526-d5b7ec791a32.vsidx and /dev/null differ
diff --git a/源代码/.vs/StgSharp/FileContentIndex/98251e7c-eb4c-473d-a405-f387c6580e0a.vsidx b/源代码/.vs/StgSharp/FileContentIndex/98251e7c-eb4c-473d-a405-f387c6580e0a.vsidx
deleted file mode 100644
index 39917c5f..00000000
Binary files a/源代码/.vs/StgSharp/FileContentIndex/98251e7c-eb4c-473d-a405-f387c6580e0a.vsidx and /dev/null differ
diff --git a/源代码/.vs/StgSharp/FileContentIndex/98377eee-a618-4e84-b2f8-b16d3e4138cd.vsidx b/源代码/.vs/StgSharp/FileContentIndex/98377eee-a618-4e84-b2f8-b16d3e4138cd.vsidx
deleted file mode 100644
index 7d91519f..00000000
Binary files a/源代码/.vs/StgSharp/FileContentIndex/98377eee-a618-4e84-b2f8-b16d3e4138cd.vsidx and /dev/null differ
diff --git a/源代码/.vs/StgSharp/v17/.futdcache.v2 b/源代码/.vs/StgSharp/v17/.futdcache.v2
index 2c4eb06a..2a0bdc94 100644
Binary files a/源代码/.vs/StgSharp/v17/.futdcache.v2 and b/源代码/.vs/StgSharp/v17/.futdcache.v2 differ
diff --git a/源代码/.vs/StgSharp/v17/.suo b/源代码/.vs/StgSharp/v17/.suo
index 58503eaf..d9c932a1 100644
Binary files a/源代码/.vs/StgSharp/v17/.suo and b/源代码/.vs/StgSharp/v17/.suo differ
diff --git a/源代码/Dependency/glfw3.dll b/源代码/Dependency/glfw3.dll
new file mode 100644
index 00000000..733404cf
Binary files /dev/null and b/源代码/Dependency/glfw3.dll differ
diff --git a/源代码/Dependency/glfw3.lib b/源代码/Dependency/glfw3.lib
new file mode 100644
index 00000000..2a52eb4e
Binary files /dev/null and b/源代码/Dependency/glfw3.lib differ
diff --git a/源代码/Dependency/glfw3_mt.lib b/源代码/Dependency/glfw3_mt.lib
new file mode 100644
index 00000000..30ba4ada
Binary files /dev/null and b/源代码/Dependency/glfw3_mt.lib differ
diff --git a/源代码/Dependency/glfw3dll.lib b/源代码/Dependency/glfw3dll.lib
new file mode 100644
index 00000000..e1b3f3ef
Binary files /dev/null and b/源代码/Dependency/glfw3dll.lib differ
diff --git a/源代码/StgSharp.sln b/源代码/StgSharp.sln
index 124dae1d..82d03bb0 100644
--- a/源代码/StgSharp.sln
+++ b/源代码/StgSharp.sln
@@ -7,6 +7,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StgSharp", "StgSharp\StgSha
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StgSharpDebug", "StgSharpDebug\StgSharpDebug.csproj", "{467F2A1A-D7E2-4904-AAAD-A5998EE45C71}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Dependency", "Dependency", "{063F21D6-CDE3-4DE1-9008-2A211F59AB38}"
+ ProjectSection(SolutionItems) = preProject
+ Dependency\glfw3.dll = Dependency\glfw3.dll
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
diff --git a/源代码/StgSharp/Control/Add.cs b/源代码/StgSharp/Control/Add.cs
index c1d4ca6a..fdffd938 100644
--- a/源代码/StgSharp/Control/Add.cs
+++ b/源代码/StgSharp/Control/Add.cs
@@ -7,18 +7,6 @@ namespace StgSharp.Control
{
public static class Add
{
- public static void Point(IGeometry geometry)
- {
- Point p = new Point();
- p.getXHandler += geometry.SetArrayX;
- p.getXHandler += geometry.SetArrayY;
- TimeLine._cache.pointContainer.Add(p);
- }
- public static void Line(Point p, float vecX,float vecY)
- {
- Line l = new Line(p, vecX, vecY);
- TimeLine._cache.geometryContainer.Add(l);
- }
}
}
diff --git a/源代码/StgSharp/Control/Remove.cs b/源代码/StgSharp/Control/Remove.cs
index e67c7bf1..7fd864f1 100644
--- a/源代码/StgSharp/Control/Remove.cs
+++ b/源代码/StgSharp/Control/Remove.cs
@@ -8,11 +8,11 @@ namespace StgSharp.Control
{
public static void Point(Point p)
{
- StgSharp.ContainerNode _cache = p._id;
+ StgSharp.ContainerNode _cache = p._id;
_cache.Previous.Next = _cache.Next;
_cache.Next.Previous = _cache.Previous;
- _cache.Next = default(StgSharp.ContainerNode);
- _cache.Previous = default(StgSharp.ContainerNode);
+ _cache.Next = default;
+ _cache.Previous = default;
}
diff --git a/源代码/StgSharp/Entities/Enemy.cs b/源代码/StgSharp/Entities/Enemy.cs
index 182cf202..4a78a49e 100644
--- a/源代码/StgSharp/Entities/Enemy.cs
+++ b/源代码/StgSharp/Entities/Enemy.cs
@@ -6,6 +6,23 @@ namespace StgSharp.Entities
{
public class Enemy : Entity
{
+ public bool _selectalbe;
+
+ public Launcher _awardLauncher;
+ public Launcher _commonBulletLauncher;
+ public Launcher _dieBulletLauncher;
+
+
+
+
+ internal void InternalDieOperation(Pool home)
+ {
+ _dieBulletLauncher.Launch(Control.TimeLine.tickCounter, home._bulletContainer);
+ _awardLauncher.Launch(Control.TimeLine.tickCounter, home._awardContainer);
+ this._id.Remove();
+ }
+
+
}
}
diff --git a/源代码/StgSharp/Entities/Entity.cs b/源代码/StgSharp/Entities/Entity.cs
index dd304d1e..8da84b51 100644
--- a/源代码/StgSharp/Entities/Entity.cs
+++ b/源代码/StgSharp/Entities/Entity.cs
@@ -7,11 +7,14 @@ namespace StgSharp
{
public class Entity:INode
{
- internal vec2d _pos;
+ internal Point _pos;
internal IGeometry _collisionBox;
internal Sensor _collisionSensor;
internal ContainerNode _id;
-
+ internal String _texture;
+ internal Point _position;
+ internal Point _basePoint;
+ internal GetLocationHandler _movHandler;
public IGeometry CollisionBox
{
@@ -53,7 +56,7 @@ namespace StgSharp
public void SetLocation(Point p)
{
-
+ _pos = p;
}
void INode.setID(ContainerNode id)
@@ -67,5 +70,11 @@ namespace StgSharp
throw new ArgumentException("Cannot set id twice!");
}
}
+
+ public void OnRender()
+ {
+ _position._position = _movHandler.Invoke(_basePoint._position, Control.TimeLine.tickCounter);
+ }
+
}
}
diff --git a/源代码/StgSharp/Entities/CollisionPartical.cs b/源代码/StgSharp/Entities/EntityPartical.cs
similarity index 73%
rename from 源代码/StgSharp/Entities/CollisionPartical.cs
rename to 源代码/StgSharp/Entities/EntityPartical.cs
index a4a026ff..758b6864 100644
--- a/源代码/StgSharp/Entities/CollisionPartical.cs
+++ b/源代码/StgSharp/Entities/EntityPartical.cs
@@ -4,7 +4,8 @@ using System.Text;
namespace StgSharp.Entities
{
- internal class CollisionPartical
+ public class EntityPartical : Entity
{
+
}
}
diff --git a/源代码/StgSharp/Entities/Launcher.cs b/源代码/StgSharp/Entities/Launcher.cs
index c9247062..9d175378 100644
--- a/源代码/StgSharp/Entities/Launcher.cs
+++ b/源代码/StgSharp/Entities/Launcher.cs
@@ -1,17 +1,50 @@
-using System;
+using StgSharp.Entities;
+using StgSharp.Math;
+using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp
{
- public class Launcher
+ public class Launcher:INode> where T : Entity
{
- internal Partical _bullet;
+ /*
+ *用于发射其他的实体,主要是子弹 和 掉落物
+ */
- public Partical Bullet
+ internal vec2d _center; //发射器的参考位置,运动轨迹的方程应当基于这个参考点构建
+ private ContainerNode> _id;
+ internal Counter _internalParameter; //发射器的内部计时器
+ internal EntityPartical _bulletSample; //发射的子弹类型
+ internal uint[] launchtick; //发射子弹的内部计时
+
+ public EntityPartical Bullet
{
- get { return _bullet; }
- set { _bullet = value; }
+ get { return _bulletSample; }
+ set { _bulletSample = value; }
+ }
+
+ internal void Launch(Counter outerTickCounter, LinkedList container)
+ {
+
+ }
+
+
+ ContainerNode> INode>.ID
+ {
+ get { return _id; }
+ }
+
+ void INode>.setID(ContainerNode id)
+ {
+ if (_id == default(ContainerNode>))
+ {
+ throw new ArgumentException();
+ }
+ else
+ {
+ _id = id as ContainerNode>;
+ }
}
}
}
diff --git a/源代码/StgSharp/Entities/Player.cs b/源代码/StgSharp/Entities/Player.cs
index e07b7bb1..2e881018 100644
--- a/源代码/StgSharp/Entities/Player.cs
+++ b/源代码/StgSharp/Entities/Player.cs
@@ -1,12 +1,21 @@
using StgSharp.Math;
using System;
using System.Collections.Generic;
+using System.Runtime.CompilerServices;
using System.Text;
namespace StgSharp
{
public class Player : Entity
{
+ internal float _velocity;
+
+ public float Velocity
+ {
+ get { return _velocity; }
+ }
+
+
}
}
diff --git a/源代码/StgSharp/Geometries/Arc.cs b/源代码/StgSharp/Geometries/Arc.cs
new file mode 100644
index 00000000..3c022355
--- /dev/null
+++ b/源代码/StgSharp/Geometries/Arc.cs
@@ -0,0 +1,82 @@
+using Steamworks;
+using StgSharp.Math;
+using System;
+using System.Collections.Generic;
+using System.Diagnostics.CodeAnalysis;
+using System.Text;
+
+namespace StgSharp.Geometries
+{
+ public class Arc : IGeometry
+ {
+ internal Point _basePoint;
+ internal Point _center;
+ internal Point _radius;
+ internal Point _angle;
+ internal RenderMode _renderMode;
+
+ public override Point BasePoint => _basePoint;
+
+ public override Point RefPoint => _center;
+
+ public override Point RefVec01 => _radius;
+
+ public override Point RefVec02 => _angle;
+
+ public override RenderMode renderMode => _renderMode;
+
+
+
+ internal sealed override void CalcVec01(uint tick)
+ {
+ _center._position = _basePoint._position + MoveCenter(tick);
+ }
+
+ internal sealed override void CalcVec02(vec2d vec, uint tick)
+ {
+ _radius._position = vec + UpdateRadius(tick);
+
+ }
+ internal sealed override void CalcVec03(StgSharp.Math.vec2d vec, uint tick)
+ {
+ _angle._position = vec + UpdateAngle(tick);
+ }
+
+ public virtual vec2d MoveCenter(uint tick) => default;
+
+ public virtual vec2d UpdateRadius(uint tick) => default;
+
+ public virtual vec2d UpdateAngle(uint tick) => default;
+
+ internal override void OnRender(uint tick)
+ {
+ CalcVec01(tick);
+ switch (_renderMode)
+ {
+ case RenderMode.BasePoint:
+ CalcVec02(_basePoint._position,tick);
+ CalcVec03(_basePoint._position,tick);
+ break;
+ case RenderMode.RefPoint:
+ CalcVec02(_center._position,tick);
+ CalcVec03(_center._position, tick);
+ break;
+ default:
+ break;
+ }
+ }
+
+ public override float SetArrayX()
+ {
+ throw new NotImplementedException();
+ }
+
+ public override float SetArrayY()
+ {
+ throw new NotImplementedException();
+ }
+
+
+
+ }
+}
diff --git a/源代码/StgSharp/Geometries/Circle.cs b/源代码/StgSharp/Geometries/Circle.cs
index 9db16e3a..027f4fb0 100644
--- a/源代码/StgSharp/Geometries/Circle.cs
+++ b/源代码/StgSharp/Geometries/Circle.cs
@@ -1,4 +1,5 @@
-using System;
+using StgSharp.Math;
+using System;
using System.Collections.Generic;
using System.Text;
@@ -6,45 +7,69 @@ namespace StgSharp
{
public class Circle : IGeometry
{
- private StgSharp.ContainerNode _id;
- internal Point _referencePoint;
- internal float _vecX;
- internal float _vecY;
+ internal Point _baseCenter;
+ internal Point _center;
+ internal Point _radiusVec;
+ internal RenderMode _renderMode;
- public Point ReferencePoint
+ public override Point BasePoint => _baseCenter;
+
+ public override Point RefPoint => _center;
+
+ public override Point RefVec01 => _radiusVec;
+
+ public override Point RefVec02 => default;
+
+ public override RenderMode renderMode => _renderMode;
+
+ internal override void CalcVec01(uint tick)
{
- get { return _referencePoint; }
+ _center._position = _baseCenter._position + MoveCenter(tick);
}
- float IGeometry.ExpressionX => throw new NotImplementedException();
-
- float IGeometry.ExpressionY => throw new NotImplementedException();
-
- ContainerNode INode.ID
+ internal override void CalcVec02(vec2d vec, uint tick)
{
- get { return _id; }
+ _radiusVec._position = vec + UpdateRadius(tick);
}
- public float SetArrayX(Counter tickCounter)
+ internal override void CalcVec03(vec2d vec, uint tick)
{
throw new NotImplementedException();
}
- public float SetArrayY(Counter tickCounter)
+ public virtual vec2d MoveCenter(uint tick) => default;
+
+ public virtual vec2d UpdateRadius(uint tick) => default;
+
+
+
+ public override float SetArrayX()
{
throw new NotImplementedException();
}
- void INode.setID(ContainerNode id)
+ public override float SetArrayY()
{
- if (_id == default(ContainerNode))
+ throw new NotImplementedException();
+ }
+
+ internal override void OnRender(uint tick)
+ {
+ CalcVec01(tick);
+ switch (_renderMode)
{
- _id = id as ContainerNode;
- }
- else
- {
- throw new ArgumentException();
+ case RenderMode.BasePoint:
+ CalcVec02(_baseCenter._position,tick);
+ CalcVec03(_baseCenter._position,tick);
+ break;
+ case RenderMode.RefPoint:
+ CalcVec02(_center._position, tick);
+ CalcVec03(_center._position, tick);
+ break;
+ default:
+ break;
}
}
+
}
}
diff --git a/源代码/StgSharp/Geometries/GetLocationHandler.cs b/源代码/StgSharp/Geometries/GetLocationHandler.cs
index a6dcb8ca..ca54a3b2 100644
--- a/源代码/StgSharp/Geometries/GetLocationHandler.cs
+++ b/源代码/StgSharp/Geometries/GetLocationHandler.cs
@@ -1,9 +1,11 @@
using StgSharp;
+using StgSharp.Math;
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp
{
- public delegate float GetLocationHandler(Counter tickCounter);
+
+ public delegate vec2d GetLocationHandler(vec2d vec, Counter tickCounter);
}
diff --git a/源代码/StgSharp/Geometries/IGeometry.cs b/源代码/StgSharp/Geometries/IGeometry.cs
index 69ab4b2d..53ae0bf5 100644
--- a/源代码/StgSharp/Geometries/IGeometry.cs
+++ b/源代码/StgSharp/Geometries/IGeometry.cs
@@ -1,30 +1,60 @@
using StgSharp;
+using StgSharp.Math;
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp
{
-
-
- public interface IGeometry:INode
+ public abstract class IGeometry:INode
{
- public Point ReferencePoint
+ internal ContainerNode _id;
+
+
+ public abstract Point BasePoint { get; }
+ public abstract Point RefPoint{ get; }
+ public abstract Point RefVec01{ get; }
+ public abstract Point RefVec02{ get; }
+
+ internal abstract void CalcVec01(uint tick);
+ internal abstract void CalcVec02(vec2d vec, uint tick);
+ internal abstract void CalcVec03(vec2d vec, uint tick);
+ internal abstract void OnRender(uint tick);
+
+ public abstract RenderMode renderMode { get; }
+ public abstract float SetArrayX();
+ public abstract float SetArrayY();
+
+ ContainerNode INode.ID => _id;
+
+ void INode.setID(ContainerNode id)
{
- get;
+ if (_id != default)
+ {
+ throw new ArgumentException("Cannot set id twice");
+ }
+ else
+ {
+ _id = id as ContainerNode;
+ }
}
- internal float ExpressionX
- {
- get;
- }
- internal float ExpressionY
- {
- get;
- }
-
- public float SetArrayX(Counter tickCounter);
- public float SetArrayY(Counter tickCounter);
+
}
+
+
+ public enum RenderMode
+ {
+ ///
+ /// 坐标点将基于参考原点构建
+ ///
+ BasePoint,
+ ///
+ /// 坐标点将基于参考起点构建
+ ///
+ RefPoint
+ }
+
+
}
diff --git a/源代码/StgSharp/Geometries/Line.cs b/源代码/StgSharp/Geometries/Line.cs
index 46b908bf..df164cc2 100644
--- a/源代码/StgSharp/Geometries/Line.cs
+++ b/源代码/StgSharp/Geometries/Line.cs
@@ -1,4 +1,6 @@
-using StgSharp;
+using Steamworks;
+using StgSharp;
+using StgSharp.Math;
using System;
using System.Collections.Generic;
using System.Text;
@@ -7,53 +9,64 @@ namespace StgSharp
{
public class Line:IGeometry
{
- private ContainerNode _id;
+ internal Point _basePoint;
+ internal Point _beginPoint;
+ internal Point _endPoint;
+ internal GetLocationHandler _beginPointMov;
+ internal GetLocationHandler _endPointMov;
+ internal RenderMode _renderMode;
- internal Point _referencePoint;
- internal float _vecX;
- internal float _vecY;
- public Point ReferencePoint
+ public override Point BasePoint => _basePoint;
+
+ public override Point RefPoint => _beginPoint;
+
+ public override Point RefVec01 => _endPoint;
+ public override Point RefVec02 => default;
+ public override RenderMode renderMode => _renderMode;
+
+ public override float SetArrayX()
{
- get { return _referencePoint; }
+ throw new NotImplementedException();
}
-
-
- ContainerNode INode.ID
+ public override float SetArrayY()
{
- get { return _id; }
+ throw new NotImplementedException();
}
- float IGeometry.ExpressionX => throw new NotImplementedException();
-
- float IGeometry.ExpressionY => throw new NotImplementedException();
-
- public Line( Point referencePoint, float vecX, float vecY)
+ internal sealed override void CalcVec01(uint tick)
{
- _referencePoint = referencePoint;
- _vecX = vecX;
- _vecY = vecY;
+ _beginPoint._position = _basePoint._position + MoveBeginPoint(tick);
}
- public float SetArrayX(Counter tickCounter)
+ internal sealed override void CalcVec02(vec2d vec, uint tick)
{
- return 0.0f;
- }
- public float SetArrayY(Counter tickCounter)
- {
- return 0.0f;
+ _endPoint._position = vec + MoveEndPoint(tick);
}
- void INode.setID(ContainerNode id)
+ internal sealed override void CalcVec03(vec2d vec, uint tick)
{
- if (id == null)
+ throw new ArgumentException("Lines do not need the third parameter to define!");
+ }
+
+ public virtual vec2d MoveBeginPoint(uint tick) => default;
+
+ public virtual vec2d MoveEndPoint(uint tick) => default;
+
+ internal override void OnRender(uint tick)
+ {
+ CalcVec01(tick);
+ switch (_renderMode)
{
- _id = id as ContainerNode;
- }
- else
- {
- throw new ArgumentNullException("Cannot set id teice!");
+ case RenderMode.BasePoint:
+ CalcVec02(_basePoint._position, tick);
+ break;
+ case RenderMode.RefPoint:
+ CalcVec02(_beginPoint._position, tick);
+ break;
+ default:
+ break;
}
}
}
diff --git a/源代码/StgSharp/Geometries/Point.cs b/源代码/StgSharp/Geometries/Point.cs
index 9f48dc34..21cd5443 100644
--- a/源代码/StgSharp/Geometries/Point.cs
+++ b/源代码/StgSharp/Geometries/Point.cs
@@ -48,8 +48,7 @@ namespace StgSharp
public void OnRender()
{
- this.getXHandler.Invoke(Control.TimeLine.tickCounter);
- this.getYHandler.Invoke(Control.TimeLine.tickCounter);
+ this.getXHandler.Invoke(this._position, Control.TimeLine.tickCounter);
}
}
}
diff --git a/源代码/StgSharp/Geometries/Rectangle.cs b/源代码/StgSharp/Geometries/Rectangle.cs
new file mode 100644
index 00000000..5f6522ce
--- /dev/null
+++ b/源代码/StgSharp/Geometries/Rectangle.cs
@@ -0,0 +1,68 @@
+using StgSharp.Math;
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace StgSharp.Geometries
+{
+ public class Rectangle : IGeometry
+ {
+ internal Point _basePoint;
+ internal Point _center;
+ internal Point _centerToCorner1;
+ internal Point _centerToCorner2;
+ internal GetLocationHandler _centerMov;
+ internal GetLocationHandler _CTC1Handler;
+ internal GetLocationHandler _CTC2Handler;
+
+
+ Point IGeometry.BasePoint
+ {
+ get { return _basePoint; }
+ }
+ Point IGeometry.RefPoint
+ {
+ get { return _center; }
+ }
+
+ Point IGeometry.RefVec01
+ {
+ get { return _centerToCorner1; }
+ }
+
+ Point IGeometry.RefVec02
+ {
+ get { return _centerToCorner2; }
+ }
+
+
+ void IGeometry.OnRender()
+ {
+
+ this._CTC2Handler.Invoke(_centerToCorner2._position, Control.TimeLine.tickCounter);
+ }
+
+ float IGeometry.SetArrayX()
+ {
+ throw new NotImplementedException();
+ }
+
+ float IGeometry.SetArrayY()
+ {
+ throw new NotImplementedException();
+ }
+
+ void INode.setID(ContainerNode id)
+ {
+ if (_id != default(ContainerNode))
+ {
+ throw new ArgumentException();
+ }
+ else
+ {
+ _id = id as ContainerNode;
+ }
+
+ }
+ }
+}
diff --git a/源代码/StgSharp/Geometries/Triangle.cs b/源代码/StgSharp/Geometries/Triangle.cs
index c21a88cd..72dcfd8e 100644
--- a/源代码/StgSharp/Geometries/Triangle.cs
+++ b/源代码/StgSharp/Geometries/Triangle.cs
@@ -1,46 +1,83 @@
using StgSharp;
+using StgSharp.Math;
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp
{
- public class Triangle
+ public class Triangle :IGeometry
{
- internal ContainerNode _id;
+ internal ContainerNode _id;
+ internal Point _basePoint;
+ internal Point _refPoint;
+ internal Point _line1;
+ internal Point _line2;
- internal Point _referencePoint;
+ internal GetLocationHandler _refMovHandler;
+ internal GetLocationHandler _line01MovHandler;
+ internal GetLocationHandler _line02MovHandler;
- internal GetLocationHandler _setArrayXHandler;
- internal GetLocationHandler _setArrayYHandler;
-
- public Point ReferencePoint
+ Point IGeometry.BasePoint
{
- get { return _referencePoint; }
+ get { return _basePoint; }
}
- public float VecX
+ Point IGeometry.RefPoint
{
- get { return _referencePoint.X; }
+ get { return _refPoint; }
}
- public float VecY
+ Point IGeometry.RefVec01
{
- get { return _referencePoint.Y; }
+ get { return _refPoint; }
+ }
+
+ Point IGeometry.RefVec02
+ {
+ get { return _line1; }
+ }
+
+ GetLocationHandler IGeometry.Vec01Expression
+ {
+ get { return _refMovHandler; }
+ }
+
+ GetLocationHandler IGeometry.Vec02Expression
+ {
+ get { return _line01MovHandler; }
+ }
+
+ GetLocationHandler IGeometry.Vec03Expression
+ {
+ get { return _line02MovHandler; }
+ }
+
+ ContainerNode INode.ID
+ {
+ get { return _id; }
}
- public float SetArrayX(Counter tickCounter)
+ void IGeometry.OnRender()
{
- return _setArrayXHandler.Invoke(tickCounter);
+ throw new NotImplementedException();
}
- public float SetArrayY(Counter tickCounter)
+ float IGeometry.SetArrayX()
{
- return _setArrayYHandler.Invoke(tickCounter);
+ throw new NotImplementedException();
}
-
+ float IGeometry.SetArrayY()
+ {
+ throw new NotImplementedException();
+ }
+
+ void INode.setID(ContainerNode id)
+ {
+ throw new NotImplementedException();
+ }
}
}
diff --git a/源代码/StgSharp/Logic/ContainerNode.cs b/源代码/StgSharp/Logic/ContainerNode.cs
index ce034f2d..927fa25f 100644
--- a/源代码/StgSharp/Logic/ContainerNode.cs
+++ b/源代码/StgSharp/Logic/ContainerNode.cs
@@ -49,5 +49,13 @@ namespace StgSharp
get { return _value; }
}
+ public void Remove()
+ {
+ _previous.Next = _next;
+ _next.Previous = _previous;
+ _next = default(ContainerNode);
+ _previous = default(ContainerNode);
+ }
+
}
}
diff --git a/源代码/StgSharp/Logic/Dictionary.cs b/源代码/StgSharp/Logic/Dictionary.cs
deleted file mode 100644
index 2e5e983d..00000000
--- a/源代码/StgSharp/Logic/Dictionary.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace StgSharp
-{
- public class Dictionary where T : Enum ,INode
- {
- internal ContainerNode _indexHead;
- internal ContainerNode _indexTail;
-
-
- }
-}
diff --git a/源代码/StgSharp/Logic/LinkedList.cs b/源代码/StgSharp/Logic/LinkedList.cs
index 6fddc3b5..4df718f9 100644
--- a/源代码/StgSharp/Logic/LinkedList.cs
+++ b/源代码/StgSharp/Logic/LinkedList.cs
@@ -6,7 +6,7 @@ using System.Text;
namespace StgSharp
{
- public class LinkedList:IEnumerable where T: INode
+ public class LinkedList:IEnumerable where T: INode
{
internal readonly ContainerNode _heading;
internal ContainerNode _first;
diff --git a/源代码/StgSharp/Logic/LinkedListEnumrator.cs b/源代码/StgSharp/Logic/LinkedListEnumrator.cs
index dd125f28..4c627a10 100644
--- a/源代码/StgSharp/Logic/LinkedListEnumrator.cs
+++ b/源代码/StgSharp/Logic/LinkedListEnumrator.cs
@@ -5,7 +5,7 @@ using System.Text;
namespace StgSharp.Logic
{
- internal class LinkedListEnumrator : IEnumerator where T : INode
+ internal class LinkedListEnumrator : IEnumerator where T : INode
{
private LinkedList _target;
ContainerNode enumrator;
diff --git a/源代码/StgSharp/Logic/Pool.cs b/源代码/StgSharp/Logic/Pool.cs
index 64fa7ab6..b8e5224a 100644
--- a/源代码/StgSharp/Logic/Pool.cs
+++ b/源代码/StgSharp/Logic/Pool.cs
@@ -1,4 +1,5 @@
using StgSharp;
+using StgSharp.Entities;
using System;
using System.Collections.Generic;
using System.Net.Http.Headers;
@@ -10,20 +11,27 @@ namespace StgSharp
{
public LinkedList pointContainer;
public LinkedList geometryContainer;
- public LinkedList> sensorContainer;
+ public LinkedList _bulletContainer;
+ public LinkedList _awardContainer;
+ public LinkedList _enemyContainer;
public Line leftBoader;
public Line rightBoader;
public Line topBoader;
public Line bottomBoader;
+ internal Sensor Sensor;
+
public Pool()
{
}
public void OnRender()
{
-
+ foreach (Enemy e in _enemyContainer)
+ {
+
+ }
}
}
diff --git a/源代码/StgSharp/bin/Debug/netstandard2.1/StgSharp.dll b/源代码/StgSharp/bin/Debug/netstandard2.1/StgSharp.dll
index 41fe336f..8b68e8dd 100644
Binary files a/源代码/StgSharp/bin/Debug/netstandard2.1/StgSharp.dll and b/源代码/StgSharp/bin/Debug/netstandard2.1/StgSharp.dll differ
diff --git a/源代码/StgSharp/bin/Debug/netstandard2.1/StgSharp.pdb b/源代码/StgSharp/bin/Debug/netstandard2.1/StgSharp.pdb
index ed466dd9..01fc3a66 100644
Binary files a/源代码/StgSharp/bin/Debug/netstandard2.1/StgSharp.pdb and b/源代码/StgSharp/bin/Debug/netstandard2.1/StgSharp.pdb differ
diff --git a/源代码/StgSharp/bin/Debug/netstandard2.1/StgSharp.xml b/源代码/StgSharp/bin/Debug/netstandard2.1/StgSharp.xml
index 7242b67e..bea48784 100644
--- a/源代码/StgSharp/bin/Debug/netstandard2.1/StgSharp.xml
+++ b/源代码/StgSharp/bin/Debug/netstandard2.1/StgSharp.xml
@@ -4,6 +4,252 @@
StgSharp
+
+
+ A sensor used for cheking out if a bullet hit a player or something else
+
+
+
+
+ A 2D vector presenting the position of an enemy entity, position can also be visited by X, Y
+
+
+
+
+ X position of an enenmy entity
+
+
+
+
+ Y position of an enemy entity
+
+
+
+
+ 坐标点将基于参考原点构建
+
+
+
+
+ 坐标点将基于参考起点构建
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Reurns the value of ArcSin(x)
@@ -36,221 +282,5 @@
Returns the value of x^y
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.csproj.AssemblyReference.cache b/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.csproj.AssemblyReference.cache
index e075505a..ca2e3b2b 100644
Binary files a/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.csproj.AssemblyReference.cache and b/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.csproj.AssemblyReference.cache differ
diff --git a/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.csproj.CoreCompileInputs.cache b/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.csproj.CoreCompileInputs.cache
index 0b6c7b30..39db7dc5 100644
--- a/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.csproj.CoreCompileInputs.cache
+++ b/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.csproj.CoreCompileInputs.cache
@@ -1 +1 @@
-3e1ad1a00461e4ab0c00b4070b9447d36b0fd3cb
+2c5d22f87b0ea0387a08d1b7f1feec1d740bd3a3
diff --git a/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.dll b/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.dll
index 41fe336f..8b68e8dd 100644
Binary files a/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.dll and b/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.dll differ
diff --git a/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.pdb b/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.pdb
index ed466dd9..01fc3a66 100644
Binary files a/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.pdb and b/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.pdb differ
diff --git a/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.xml b/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.xml
index 7242b67e..bea48784 100644
--- a/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.xml
+++ b/源代码/StgSharp/obj/Debug/netstandard2.1/StgSharp.xml
@@ -4,6 +4,252 @@
StgSharp
+
+
+ A sensor used for cheking out if a bullet hit a player or something else
+
+
+
+
+ A 2D vector presenting the position of an enemy entity, position can also be visited by X, Y
+
+
+
+
+ X position of an enenmy entity
+
+
+
+
+ Y position of an enemy entity
+
+
+
+
+ 坐标点将基于参考原点构建
+
+
+
+
+ 坐标点将基于参考起点构建
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Reurns the value of ArcSin(x)
@@ -36,221 +282,5 @@
Returns the value of x^y
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/源代码/StgSharp/obj/Debug/netstandard2.1/ref/StgSharp.dll b/源代码/StgSharp/obj/Debug/netstandard2.1/ref/StgSharp.dll
index 3f0b0d51..97caa4ec 100644
Binary files a/源代码/StgSharp/obj/Debug/netstandard2.1/ref/StgSharp.dll and b/源代码/StgSharp/obj/Debug/netstandard2.1/ref/StgSharp.dll differ
diff --git a/源代码/StgSharp/obj/Debug/netstandard2.1/refint/StgSharp.dll b/源代码/StgSharp/obj/Debug/netstandard2.1/refint/StgSharp.dll
index 3f0b0d51..97caa4ec 100644
Binary files a/源代码/StgSharp/obj/Debug/netstandard2.1/refint/StgSharp.dll and b/源代码/StgSharp/obj/Debug/netstandard2.1/refint/StgSharp.dll differ
diff --git a/源代码/StgSharpDebug/Program.cs b/源代码/StgSharpDebug/Program.cs
index c42139e2..9eb0a1b9 100644
--- a/源代码/StgSharpDebug/Program.cs
+++ b/源代码/StgSharpDebug/Program.cs
@@ -7,9 +7,6 @@ internal class Program
{
private unsafe static void Main(string[] args)
{
-
- Sensor s = new Sensor();
-
/*
double time;
TimeSpan span;
diff --git a/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharp.dll b/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharp.dll
index 41fe336f..8b68e8dd 100644
Binary files a/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharp.dll and b/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharp.dll differ
diff --git a/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharp.pdb b/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharp.pdb
index ed466dd9..01fc3a66 100644
Binary files a/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharp.pdb and b/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharp.pdb differ
diff --git a/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharp.xml b/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharp.xml
index 7242b67e..bea48784 100644
--- a/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharp.xml
+++ b/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharp.xml
@@ -4,6 +4,252 @@
StgSharp
+
+
+ A sensor used for cheking out if a bullet hit a player or something else
+
+
+
+
+ A 2D vector presenting the position of an enemy entity, position can also be visited by X, Y
+
+
+
+
+ X position of an enenmy entity
+
+
+
+
+ Y position of an enemy entity
+
+
+
+
+ 坐标点将基于参考原点构建
+
+
+
+
+ 坐标点将基于参考起点构建
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Reurns the value of ArcSin(x)
@@ -36,221 +282,5 @@
Returns the value of x^y
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.dll b/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.dll
index f08df859..896b023e 100644
Binary files a/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.dll and b/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.dll differ
diff --git a/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.pdb b/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.pdb
index 28200c61..56cbb860 100644
Binary files a/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.pdb and b/源代码/StgSharpDebug/bin/Debug/net6.0/StgSharpDebug.pdb differ
diff --git a/源代码/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.csproj.AssemblyReference.cache b/源代码/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.csproj.AssemblyReference.cache
index 28e85c46..6d5b4f36 100644
Binary files a/源代码/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.csproj.AssemblyReference.cache and b/源代码/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.csproj.AssemblyReference.cache differ
diff --git a/源代码/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.dll b/源代码/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.dll
index f08df859..896b023e 100644
Binary files a/源代码/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.dll and b/源代码/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.dll differ
diff --git a/源代码/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.pdb b/源代码/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.pdb
index 28200c61..56cbb860 100644
Binary files a/源代码/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.pdb and b/源代码/StgSharpDebug/obj/Debug/net6.0/StgSharpDebug.pdb differ
diff --git a/源代码/StgSharpDebug/obj/Debug/net6.0/ref/StgSharpDebug.dll b/源代码/StgSharpDebug/obj/Debug/net6.0/ref/StgSharpDebug.dll
index 519ce93b..69230fe3 100644
Binary files a/源代码/StgSharpDebug/obj/Debug/net6.0/ref/StgSharpDebug.dll and b/源代码/StgSharpDebug/obj/Debug/net6.0/ref/StgSharpDebug.dll differ
diff --git a/源代码/StgSharpDebug/obj/Debug/net6.0/refint/StgSharpDebug.dll b/源代码/StgSharpDebug/obj/Debug/net6.0/refint/StgSharpDebug.dll
index 519ce93b..69230fe3 100644
Binary files a/源代码/StgSharpDebug/obj/Debug/net6.0/refint/StgSharpDebug.dll and b/源代码/StgSharpDebug/obj/Debug/net6.0/refint/StgSharpDebug.dll differ