-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add excludeOwner option to ClientRpc (#1954)
* WIP * WIP * WIP * WIP * feat: Add excludeOwner option to ClientRpc * removed default value * Fixed tests * Update Assets/Mirror/Editor/Weaver/Processors/RpcProcessor.cs Co-authored-by: James Frowen <jamesfrowendev@gmail.com> * adding weaver test for exlude owner * adding test for call to exclude owner * adding comment back * removing ClientRpcInfo we don't need ClientRpcInfo as client rpc is only called server side so we don't need to double check exlucde owner, weaver can handle it * removing extra register * fixing test compile errors * Update Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests~/ClientRpcThatExcludesOwner.cs * doc: fixed typos in readme * doc: Updated ChangeLog * doc: Updated docs for Command ignoreAuthority option * doc: Updated ChangeLog * fixing typo in comment (#1963) * Removed YouTube link. Link is changing soon. (#1962) * Removed YouTube link. Link is changing soon. (#1961) * Removed YouTube link. Link is changing soon. (#1960) * Removed YouTube link. Link is changing soon. (#1959) * Removed YouTube link. Links are changing. (#1958) * Removed YouTube link. Links are changing. (#1957) * Update NetworkBehavior.md (#1956) * fixed comment typo * doc: Updated Migration guide example Co-authored-by: James Frowen <jamesfrowendev@gmail.com> Co-authored-by: FirstGearGames <firstgeargames@gmail.com>
- Loading branch information
1 parent
b4d0296
commit 864fdd5
Showing
10 changed files
with
108 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests~/AbstractClientRpc.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
Assets/Mirror/Tests/Editor/Weaver/WeaverClientRpcTests~/ClientRpcThatExcludesOwner.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Mirror; | ||
|
||
namespace WeaverClientRpcTests.ClientRpcThatExcludesOwner | ||
{ | ||
class ClientRpcThatExcludesOwner : NetworkBehaviour | ||
{ | ||
[ClientRpc(excludeOwner = true)] | ||
void RpcDoSomething() | ||
{ | ||
// do something | ||
} | ||
} | ||
} |