2019-10-20 23:54:52 +00:00
|
|
|
|
|
|
|
|
|
namespace SanAndreasUnity.Importing.Items.Placements
|
|
|
|
|
{
|
|
|
|
|
[System.Flags]
|
|
|
|
|
public enum EnexFlags
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Section("enex")]
|
|
|
|
|
public class EntranceExit : Placement
|
|
|
|
|
{
|
|
|
|
|
|
2021-07-18 04:03:43 +00:00
|
|
|
|
public readonly UnityEngine.Vector3 EntrancePos; // position where enex is located
|
|
|
|
|
public readonly float EntranceAngle; // rotation of ped when entering enex
|
2019-10-20 23:54:52 +00:00
|
|
|
|
public readonly UnityEngine.Vector3 Size;
|
2021-07-18 04:03:43 +00:00
|
|
|
|
public readonly UnityEngine.Vector3 ExitPos; // position of ped after teleporting to this enex
|
|
|
|
|
public readonly float ExitAngle; // rotation of ped after teleporting to this enex
|
|
|
|
|
public readonly int TargetInterior; // interior level where enex is located
|
2019-10-20 23:54:52 +00:00
|
|
|
|
public readonly int Flags;
|
|
|
|
|
public readonly string Name;
|
|
|
|
|
public readonly int SkyColorType;
|
|
|
|
|
public readonly int NumPedsToSpawn;
|
|
|
|
|
public readonly int TimeOn;
|
|
|
|
|
public readonly int TimeOff;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public EntranceExit(string line) : base(line)
|
|
|
|
|
{
|
|
|
|
|
int index = 0;
|
|
|
|
|
|
|
|
|
|
EntrancePos = GetUnityVec3(ref index, true);
|
|
|
|
|
EntranceAngle = GetSingle(index++);
|
|
|
|
|
Size = GetUnityVec3(ref index, false);
|
|
|
|
|
ExitPos = GetUnityVec3(ref index, true);
|
|
|
|
|
ExitAngle = GetSingle(index++);
|
|
|
|
|
TargetInterior = GetInt(index++);
|
|
|
|
|
Flags = GetInt(index++);
|
|
|
|
|
Name = GetString(index++);
|
2019-10-22 22:09:28 +00:00
|
|
|
|
Name = Name.Substring(1, Name.Length - 2); // remove quotes
|
2019-10-20 23:54:52 +00:00
|
|
|
|
SkyColorType = GetInt(index++);
|
|
|
|
|
NumPedsToSpawn = GetInt(index++);
|
|
|
|
|
TimeOn = GetInt(index++);
|
|
|
|
|
TimeOff = GetInt(index++);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|