using QSB.Messaging; using QSB.WorldSync; using UnityEngine; namespace QSB.AuthoritySync; /// /// helper implementation of the interface /// public abstract class AuthWorldObject : WorldObject, IAuthWorldObject where T : MonoBehaviour { public uint Owner { get; set; } public abstract bool CanOwn { get; } public override void SendInitialState(uint to) { ((IAuthWorldObject)this).SendMessage(new WorldObjectAuthMessage(Owner) { To = to }); } }