make HostControls public and in interface

This commit is contained in:
_nebula 2023-02-08 11:37:17 +00:00
parent 1168da8c69
commit 4800123ddb
4 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@ namespace QSB.QuantumSync.WorldObjects;
public interface IQSBQuantumObject : IWorldObject
{
bool HostControls { get; }
uint ControllingPlayer { get; set; }
bool IsEnabled { get; }

View File

@ -2,7 +2,7 @@
internal class QSBEyeProxyQuantumMoon : QSBQuantumObject<EyeProxyQuantumMoon>
{
protected override bool HostControls => true;
public override bool HostControls => true;
public override void SendInitialState(uint to)
{

View File

@ -7,7 +7,7 @@ namespace QSB.QuantumSync.WorldObjects;
internal class QSBQuantumMoon : QSBQuantumObject<QuantumMoon>
{
protected override bool HostControls => true;
public override bool HostControls => true;
public override void SendInitialState(uint to)
{

View File

@ -25,7 +25,7 @@ internal abstract class QSBQuantumObject<T> : WorldObject<T>, IQSBQuantumObject
/// whether the controlling player is always the host <br/>
/// also means this object is considered always enabled
/// </summary>
protected virtual bool HostControls => false;
public virtual bool HostControls => false;
public uint ControllingPlayer { get; set; }
public bool IsEnabled { get; private set; }