2020-08-20 17:29:47 +01:00
|
|
|
|
using QSB.WorldSync;
|
2020-08-16 17:15:36 +02:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
2020-12-31 12:10:55 +00:00
|
|
|
|
namespace QSB.SectorSync.WorldObjects
|
2020-08-16 17:15:36 +02:00
|
|
|
|
{
|
2020-12-23 22:43:05 +00:00
|
|
|
|
public class QSBSector : WorldObject<Sector>
|
2020-12-02 21:23:01 +00:00
|
|
|
|
{
|
2020-12-23 22:43:05 +00:00
|
|
|
|
public Sector.Name Type => AttachedObject.GetName();
|
|
|
|
|
public Transform Transform => AttachedObject.transform;
|
2020-12-02 21:23:01 +00:00
|
|
|
|
public Vector3 Position => Transform.position;
|
2020-08-20 19:31:10 +01:00
|
|
|
|
|
2020-12-23 22:43:05 +00:00
|
|
|
|
public override void Init(Sector sector, int id)
|
2020-12-02 21:23:01 +00:00
|
|
|
|
{
|
|
|
|
|
ObjectId = id;
|
2020-12-23 22:43:05 +00:00
|
|
|
|
AttachedObject = sector;
|
2020-12-02 21:23:01 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2020-12-03 08:28:05 +00:00
|
|
|
|
}
|