1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 23:50:29 +01:00

Refactored fields/properties for better encapsulation.

This commit is contained in:
Rich Dunne 2020-09-07 20:23:53 -06:00
parent 1aa94a0d50
commit 754bac2949

View file

@ -9,31 +9,15 @@ namespace SceneManager
private Vector3 _barrierPosition { get; set; }
private float _barrierRotation { get; set; }
public Rage.Object Object { get { return _barrier; } set { _barrier = value; } }
public Vector3 Position { get { return _barrierPosition; } set { _barrierPosition = value; } }
public float Rotation { get { return _barrierRotation; } set { _barrierRotation = value; } }
public Barrier(Rage.Object barrier, Vector3 barrierPosition, float barrierRotation)
{
_barrier = barrier;
_barrierPosition = barrierPosition;
_barrierRotation = barrierRotation;
}
public Rage.Object GetBarrier()
{
return _barrier;
}
public Vector3 GetPosition()
{
return _barrierPosition;
}
public float GetRotation()
{
return _barrierRotation;
}
internal object DistanceTo(Ped character)
{
throw new NotImplementedException();
}
}
}