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