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:
parent
1aa94a0d50
commit
754bac2949
1 changed files with 4 additions and 20 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue