2022-03-14 08:22:50 +00:00
|
|
|
|
using Mirror;
|
|
|
|
|
using QSB.WorldSync;
|
2022-03-14 06:31:52 +00:00
|
|
|
|
|
2022-03-14 07:51:25 +00:00
|
|
|
|
namespace QSB.Utility.LinkedWorldObject;
|
2022-03-14 06:31:52 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// a world object that is linked to a network behaviour
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface ILinkedWorldObject<out TNetworkBehaviour> : IWorldObject
|
2022-03-14 08:22:50 +00:00
|
|
|
|
where TNetworkBehaviour : NetworkBehaviour
|
2022-03-14 06:31:52 +00:00
|
|
|
|
{
|
|
|
|
|
TNetworkBehaviour NetworkBehaviour { get; }
|
2022-03-14 10:34:00 +00:00
|
|
|
|
void SetNetworkBehaviour(NetworkBehaviour networkBehaviour);
|
2022-03-14 06:31:52 +00:00
|
|
|
|
}
|