mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-25 11:47:10 +00:00
48 lines
No EOL
1.4 KiB
C#
48 lines
No EOL
1.4 KiB
C#
|
|
namespace SanAndreasUnity.Importing.Items.Placements
|
|
{
|
|
[System.Flags]
|
|
public enum EnexFlags
|
|
{
|
|
|
|
}
|
|
|
|
[Section("enex")]
|
|
public class EntranceExit : Placement
|
|
{
|
|
|
|
public readonly UnityEngine.Vector3 EntrancePos;
|
|
public readonly float EntranceAngle;
|
|
public readonly UnityEngine.Vector3 Size;
|
|
public readonly UnityEngine.Vector3 ExitPos;
|
|
public readonly float ExitAngle;
|
|
public readonly int TargetInterior;
|
|
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++);
|
|
Name = Name.Substring(1, Name.Length - 2); // remove quotes
|
|
SkyColorType = GetInt(index++);
|
|
NumPedsToSpawn = GetInt(index++);
|
|
TimeOn = GetInt(index++);
|
|
TimeOff = GetInt(index++);
|
|
|
|
}
|
|
}
|
|
} |