mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-06 09:39:52 +00:00
* add stuff * extract patches * extract worldobjects (#241) * add spiral sync * cleanup * cleanup * fix * rename * add computers * remove qnet flagshelper * Update README.md * cleanup
19 lines
450 B
C#
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;
|
|
}
|
|
}
|
|
} |