Revert "change ShouldDisplayLabel to property"

This reverts commit 6c301049516190c559dc1bf0d485a53c6aa79892.
This commit is contained in:
JohnCorby 2021-12-28 16:13:21 -08:00
parent d030d9746f
commit 07aee5c3ea
4 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ namespace QSB.QuantumSync.WorldObjects
}
}
public override bool ShouldDisplayLabel => ControllingPlayer != 0;
public override bool ShouldDisplayLabel() => ControllingPlayer != 0;
public override void Init()
{

View File

@ -9,7 +9,7 @@ namespace QSB.WorldSync
void OnRemoval();
MonoBehaviour ReturnObject();
bool ShouldDisplayLabel { get; }
bool ShouldDisplayLabel();
string ReturnLabel();
}
}

View File

@ -14,7 +14,7 @@ namespace QSB.WorldSync
public virtual void Init() { }
public virtual void OnRemoval() { }
public MonoBehaviour ReturnObject() => AttachedObject;
public virtual bool ShouldDisplayLabel => true;
public virtual bool ShouldDisplayLabel() => true;
public virtual string ReturnLabel() => LogName;
/// indicates that this won't become ready immediately

View File

@ -136,7 +136,7 @@ namespace QSB.WorldSync
foreach (var obj in QSBWorldSync.GetWorldObjects())
{
if (obj.ShouldDisplayLabel)
if (obj.ShouldDisplayLabel())
{
DebugGUI.DrawLabel(obj.ReturnObject().transform, obj.ReturnLabel());
}