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:
parent
d75229c83e
commit
774a2801fc
1 changed files with 39 additions and 0 deletions
39
SceneManager/Barrier.cs
Normal file
39
SceneManager/Barrier.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue