AmazingAlek f434ed027b
sector overhaul (#176)
* wrapper for sector
* using world registry for sectors
* using order id as unique sector key
* sector manager
* not checking closest sector every frame
2020-08-16 17:15:36 +02:00

21 lines
520 B
C#

using QSB.WorldSync;
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)
{
Sector = sector;
ObjectId = id;
}
}
}