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

Created new Barrier class to store barrier information for the new Reset Barriers menu option.

This commit is contained in:
Rich Dunne 2020-08-30 15:34:39 -06:00
parent d75229c83e
commit 774a2801fc

39
SceneManager/Barrier.cs Normal file
View file

@ -0,0 +1,39 @@
using System;
using Rage;
namespace SceneManager
{
class Barrier
{
private Rage.Object _barrier { get; set; }
private Vector3 _barrierPosition { get; set; }
private float _barrierRotation { get; set; }
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();
}
}
}