Skip to content

Commit

Permalink
make HostControls public and in interface
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed Feb 8, 2023
1 parent 1168da8 commit 4800123
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions QSB/QuantumSync/WorldObjects/IQSBQuantumObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace QSB.QuantumSync.WorldObjects;

public interface IQSBQuantumObject : IWorldObject
{
bool HostControls { get; }
uint ControllingPlayer { get; set; }
bool IsEnabled { get; }

Expand Down
2 changes: 1 addition & 1 deletion QSB/QuantumSync/WorldObjects/QSBEyeProxyQuantumMoon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion QSB/QuantumSync/WorldObjects/QSBQuantumMoon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion QSB/QuantumSync/WorldObjects/QSBQuantumObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down

0 comments on commit 4800123

Please sign in to comment.