Some refactoring of code. and some cleanups

This commit is contained in:
hondacrx
2019-09-21 12:11:16 -04:00
parent 7c405230cc
commit 35c06c09fd
214 changed files with 1235 additions and 1341 deletions
+11 -11
View File
@@ -23,6 +23,11 @@ namespace Game.Entities
{
public class Position
{
public float posX;
public float posY;
public float posZ;
public float Orientation;
public Position(float x = 0f, float y = 0f, float z = 0f, float o = 0f)
{
posX = x;
@@ -321,15 +326,16 @@ namespace Game.Entities
{
return $"X: {posX} Y: {posY} Z: {posZ} O: {Orientation}";
}
public float posX;
public float posY;
public float posZ;
public float Orientation;
}
public class WorldLocation : Position
{
uint _mapId;
Cell currentCell;
public ObjectCellMoveState _moveState;
public Position _newPosition = new Position();
public WorldLocation(uint mapId = 0xFFFFFFFF, float x = 0, float y = 0, float z = 0, float o = 0)
{
_mapId = mapId;
@@ -384,11 +390,5 @@ namespace Game.Entities
{
return this;
}
uint _mapId;
Cell currentCell;
public ObjectCellMoveState _moveState;
public Position _newPosition = new Position();
}
}