2022-08-16 05:53:46 +00:00
|
|
|
|
using QSB.WorldSync;
|
|
|
|
|
|
2023-05-08 18:30:59 +00:00
|
|
|
|
namespace QSB.OwnershipSync;
|
2022-08-16 05:53:46 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// a world object that has an owner
|
|
|
|
|
/// </summary>
|
2023-05-08 18:30:59 +00:00
|
|
|
|
public interface IOwnedWorldObject : IWorldObject
|
2022-08-16 05:53:46 +00:00
|
|
|
|
{
|
2022-08-16 06:04:14 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 0 = owned by no one
|
|
|
|
|
/// </summary>
|
2022-08-16 05:53:46 +00:00
|
|
|
|
public uint Owner { get; set; }
|
|
|
|
|
/// <summary>
|
2023-05-08 18:38:24 +00:00
|
|
|
|
/// can the world object be owned by this client
|
2022-08-16 05:53:46 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
public bool CanOwn { get; }
|
|
|
|
|
}
|