Merge pull request 'tower-sell' (#12) from tower-sell into main
Reviewed-on: #12
This commit is contained in:
commit
52f7bfdf51
28 changed files with 5746 additions and 33 deletions
|
|
@ -137,7 +137,7 @@ namespace TD.Gameplay.Draft
|
|||
// ----- Owner → server RPCs ----------------------------------------
|
||||
|
||||
/// <summary>Owning client: pick one of the offered options by id.</summary>
|
||||
[Rpc(SendTo.Server, RequireOwnership = true)]
|
||||
[Rpc(SendTo.Server, InvokePermission = RpcInvokePermission.Owner)]
|
||||
public void RequestPickRpc(int optionId)
|
||||
{
|
||||
ServerResolve(optionId);
|
||||
|
|
@ -148,7 +148,7 @@ namespace TD.Gameplay.Draft
|
|||
/// afford it or already has an unresolved draft (resolve the current one first so a
|
||||
/// free pick is never silently overwritten).
|
||||
/// </summary>
|
||||
[Rpc(SendTo.Server, RequireOwnership = true)]
|
||||
[Rpc(SendTo.Server, InvokePermission = RpcInvokePermission.Owner)]
|
||||
public void RequestBuyRerollRpc()
|
||||
{
|
||||
if (HasActiveDraft) return; // resolve the pending draft before buying another
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue