Mister_Nebula 53974485c9
Spiral sync (#242)
* add stuff

* extract patches

* extract worldobjects (#241)

* add spiral sync

* cleanup

* cleanup

* fix

* rename

* add computers

* remove qnet flagshelper

* Update README.md

* cleanup
2020-12-31 12:10:55 +00:00

19 lines
450 B
C#

using QSB.WorldSync;
using UnityEngine;
namespace QSB.SectorSync.WorldObjects
{
public class QSBSector : WorldObject<Sector>
{
public Sector.Name Type => AttachedObject.GetName();
public string Name => AttachedObject.name;
public Transform Transform => AttachedObject.transform;
public Vector3 Position => Transform.position;
public override void Init(Sector sector, int id)
{
ObjectId = id;
AttachedObject = sector;
}
}
}