2020-08-19 21:28:04 +01:00
|
|
|
|
using OWML.Common;
|
|
|
|
|
using QSB.Utility;
|
|
|
|
|
using QSB.WorldSync;
|
2020-08-16 17:15:36 +02:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace QSB.TransformSync
|
|
|
|
|
{
|
|
|
|
|
public class QSBSector : WorldObject
|
|
|
|
|
{
|
|
|
|
|
public Sector Sector { get; private set; }
|
|
|
|
|
public Sector.Name Type => Sector.GetName();
|
|
|
|
|
public string Name => Sector.name;
|
|
|
|
|
public Transform Transform => Sector.transform;
|
|
|
|
|
public Vector3 Position => Transform.position;
|
|
|
|
|
|
|
|
|
|
public void Init(Sector sector, int id)
|
|
|
|
|
{
|
2020-08-19 21:28:04 +01:00
|
|
|
|
if (sector == null)
|
|
|
|
|
{
|
|
|
|
|
DebugLog.ToConsole($"Error - Init of QSBSector with null sector - id of {id}", MessageType.Error);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
DebugLog.ToConsole($"Init of QSBSector with id of {id} and sector of {sector.name}");
|
|
|
|
|
}
|
2020-08-16 17:15:36 +02:00
|
|
|
|
Sector = sector;
|
|
|
|
|
ObjectId = id;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|