Renamed Dat to DataConsts
This commit is contained in:
@@ -3,7 +3,7 @@ using System.Runtime.InteropServices;
|
||||
namespace _2DGAMELIB
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential, Size = 1)]
|
||||
public struct Dat
|
||||
public struct DataConsts
|
||||
{
|
||||
public static MatrixD MatDZero = new MatrixD(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
|
||||
|
||||
@@ -264,7 +264,7 @@ namespace _2DGAMELIB
|
||||
Open.Bot => frame1.ToGlobal((TL1 + TR1) * 0.5),
|
||||
Open.Rig => frame1.ToGlobal((TL1 + BL1) * 0.5),
|
||||
Open.Lef => frame1.ToGlobal((TR1 + BR1) * 0.5),
|
||||
_ => Dat.Vec2DZero,
|
||||
_ => DataConsts.Vec2DZero,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -276,7 +276,7 @@ namespace _2DGAMELIB
|
||||
Open.Bot => gauge.ToGlobal((BLG + BRG) * 0.5),
|
||||
Open.Rig => gauge.ToGlobal((TRG + BRG) * 0.5),
|
||||
Open.Lef => gauge.ToGlobal((TLG + BLG) * 0.5),
|
||||
_ => Dat.Vec2DZero,
|
||||
_ => DataConsts.Vec2DZero,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace _2DGAMELIB
|
||||
[Serializable]
|
||||
public class Joi
|
||||
{
|
||||
public Vector2D Joint = Dat.Vec2DZero;
|
||||
public Vector2D Joint = DataConsts.Vec2DZero;
|
||||
|
||||
public Joi(Joi Joi)
|
||||
{
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace _2DGAMELIB
|
||||
public FPS FPSF = new FPS(60.0);
|
||||
|
||||
private Size BaseSize = Size.Empty;
|
||||
private Vector2D resVector = Dat.Vec2DZero;
|
||||
private Vector2D resVector = DataConsts.Vec2DZero;
|
||||
|
||||
public string UITitle;
|
||||
|
||||
@@ -60,11 +60,11 @@ namespace _2DGAMELIB
|
||||
}
|
||||
set
|
||||
{
|
||||
Modes[mode].Up(MouseButtons.None, Dat.Vec2DZero, Color.Empty);
|
||||
Modes[mode].Move(MouseButtons.None, Dat.Vec2DZero, Color.Empty);
|
||||
Modes[mode].Up(MouseButtons.None, DataConsts.Vec2DZero, Color.Empty);
|
||||
Modes[mode].Move(MouseButtons.None, DataConsts.Vec2DZero, Color.Empty);
|
||||
Modeb = mode;
|
||||
mode = value;
|
||||
Modes[mode].Move(MouseButtons.None, Dat.Vec2DZero, Color.Empty);
|
||||
Modes[mode].Move(MouseButtons.None, DataConsts.Vec2DZero, Color.Empty);
|
||||
Modes[mode].Setting();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,20 +33,20 @@ namespace _2DGAMELIB
|
||||
|
||||
protected List<Joi> jp = new List<Joi>();
|
||||
|
||||
protected Vector2D basePointBase = Dat.Vec2DZero;
|
||||
protected Vector2D basePointBase = DataConsts.Vec2DZero;
|
||||
|
||||
//cont short for contract?
|
||||
protected Vector2D basePointCont = Dat.Vec2DZero;
|
||||
protected Vector2D basePointCont = DataConsts.Vec2DZero;
|
||||
|
||||
protected Vector2D positionBase = Dat.Vec2DZero;
|
||||
protected Vector2D positionBase = DataConsts.Vec2DZero;
|
||||
|
||||
protected Vector2D positionContO = Dat.Vec2DZero;
|
||||
protected Vector2D positionContO = DataConsts.Vec2DZero;
|
||||
|
||||
protected Vector2D positionCont = Dat.Vec2DZero;
|
||||
protected Vector2D positionCont = DataConsts.Vec2DZero;
|
||||
|
||||
protected double positionSize = 1.0;
|
||||
|
||||
protected Vector2D positionVector = Dat.Vec2DZero;
|
||||
protected Vector2D positionVector = DataConsts.Vec2DZero;
|
||||
|
||||
protected double anglePare;
|
||||
|
||||
|
||||
@@ -28,9 +28,9 @@ namespace _2DGAMELIB
|
||||
[NonSerialized, JsonIgnore]
|
||||
private StringFormat stringformat = new StringFormat();
|
||||
|
||||
private Vector2D positionT = Dat.Vec2DZero;
|
||||
private Vector2D positionT = DataConsts.Vec2DZero;
|
||||
|
||||
private Vector2D rectSize = Dat.Vec2DOne;
|
||||
private Vector2D rectSize = DataConsts.Vec2DOne;
|
||||
|
||||
public string Text = "";
|
||||
|
||||
@@ -366,7 +366,7 @@ namespace _2DGAMELIB
|
||||
Vector2D[] stringRectPoints = GetStringRectPoints(Unit, Graphics);
|
||||
|
||||
Out @out = new Out { Tension = 0f };
|
||||
Vector2D vector2D = Dat.Vec2DZero - stringRectPoints[0];
|
||||
Vector2D vector2D = DataConsts.Vec2DZero - stringRectPoints[0];
|
||||
|
||||
double x = 0.05;
|
||||
double num = 0.025;
|
||||
|
||||
@@ -23,8 +23,8 @@ namespace _2DGAMELIB
|
||||
protected Size hitBufferSize = System.Drawing.Size.Empty;
|
||||
protected Size displayBufferSize = System.Drawing.Size.Empty;
|
||||
|
||||
public Vector2D BasePoint = Dat.Vec2DZero;
|
||||
public Vector2D Position = Dat.Vec2DZero;
|
||||
public Vector2D BasePoint = DataConsts.Vec2DZero;
|
||||
public Vector2D Position = DataConsts.Vec2DZero;
|
||||
|
||||
public Graphics DisplayGraphics => displayGraphics;
|
||||
public Graphics HitGraphics => hitGraphics;
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace _2DGAMELIB
|
||||
public static Vector2D GetCenter(this IEnumerable<Out> Out)
|
||||
{
|
||||
double num = 0.0;
|
||||
Vector2D vec2DZero = Dat.Vec2DZero;
|
||||
Vector2D vec2DZero = DataConsts.Vec2DZero;
|
||||
foreach (Out item in Out)
|
||||
{
|
||||
foreach (Vector2D p in item.ps)
|
||||
@@ -72,7 +72,7 @@ namespace _2DGAMELIB
|
||||
public static Vector2D GetCenter(this IEnumerable<Joi> Joi)
|
||||
{
|
||||
double num = 0.0;
|
||||
Vector2D vec2DZero = Dat.Vec2DZero;
|
||||
Vector2D vec2DZero = DataConsts.Vec2DZero;
|
||||
foreach (Joi item in Joi)
|
||||
{
|
||||
vec2DZero += item.Joint;
|
||||
|
||||
Reference in New Issue
Block a user