Commit Graph

766 Commits

Author SHA1 Message Date
vis2k
4ae6d21418 Removed old comment 2018-12-30 20:12:07 +01:00
vis2k
8854eba284 NetworkIdentity.HandleRemoteCall uses NetworkBehaviour.InvokeHandlerDelegate; Removed unnecessary GetInvokerFunctionForHash afterwards. 2018-12-30 20:07:46 +01:00
vis2k
fa893c0ff1 NetworkIdentity.HandleRemoteCall: check componentIndex == -1 case too 2018-12-30 19:01:16 +01:00
vis2k
98dc229e98 NetworkIdentity.HandleRemoteCall function that is reused by HandleSyncEvent/Command/Rpc now 2018-12-30 18:56:43 +01:00
vis2k
8947e9d974 ClientScene.OnRPCMessage: removed redundant error message because HandleRPC already has one 2018-12-30 18:44:35 +01:00
vis2k
c560cf4bf2 NetworkBehaviour.GetCmdHashHandlerName simplified 2018-12-30 18:39:14 +01:00
vis2k
ba6e34ab9b NetworkBehaviour.InvokeHandlerDelegateOfType renamed to InvokeHandlerDelegate for simplicity 2018-12-30 18:36:21 +01:00
vis2k
e573acd33e NetworkBehaviour.InvokeCommand/Rpc/SyncEventDelegate wrapper functions removed. 2018-12-30 18:35:32 +01:00
vis2k
24b700b266 NetworkBehaviour.RegisterCommand/Rpc/EventDelegate use RegisterDelegate function now 2018-12-30 18:28:56 +01:00
vis2k
d1b0d78bde NetworkBehaviour: removed unnecessary GetInvokerForHashCommand/ClientRpc/SyncEvent wrapper functions 2018-12-30 18:28:56 +01:00
vis2k
4c2fdc51bf UNetInvokeType moved to UNetwork.cs so that NetworkBehaviour is less cluttered and so that it can be used from other classes more easily. 2018-12-30 18:28:56 +01:00
vis2k
5bf7244533 NetworkBehaviour.GetInvokerForHash actually returns the invoker and a new GetInvokerFunctionForHash function returns the function. Can be reused in InvokeHandlerDelegateOfType now too. 2018-12-30 18:28:48 +01:00
vis2k
376cfebcdf Syntax 2018-12-30 18:04:56 +01:00
vis2k
77fe8e0145 NetworkBehaviour.InvokeCommand/Rpc/SyncEventDelegate all use InvokeHandlerDelegateOfType function now 2018-12-30 18:03:26 +01:00
vis2k
0924e2f144 NetworkBehaviour.InvokeSyncEventDelegate: added missing IsInstanceOfType check that the other invokes have 2018-12-30 17:59:54 +01:00
vis2k
c52e36af57 NetworkBehaviour.GetInvokerForHash simplified 2018-12-30 17:42:36 +01:00
vis2k
c9f68f4b73 NetworkBehaviour.SendRPCInternal/SendTargetRPCInternal: improved error messages 2018-12-30 17:36:40 +01:00
vis2k
aed13e68e2 NetworkBehaviour: removed unused GetCmdHashPrefixName function 2018-12-30 17:31:24 +01:00
vis2k
98f984182a NetworkBehaviour.InvokeSyncEventDelegate simplified 2018-12-30 17:30:43 +01:00
vis2k
3d7a10fd08 NetworkBehaviour.InvokeRpcDelegate simplified 2018-12-30 17:29:57 +01:00
vis2k
b3a4c3159c NetworkBehaviour.InvokeCommandDelegate simplified 2018-12-30 17:29:07 +01:00
vis2k
dd7915bf75 NetworkBehaviour: removed unused GetCmdHashCmdName/RpcName/EventName functions 2018-12-30 17:26:31 +01:00
vis2k
113eb2a8f0 NetworkBehaviour: removed unused ContainsCommandDelegate function 2018-12-30 17:24:36 +01:00
vis2k
a1e3d94f2f Syntax 2018-12-30 17:23:45 +01:00
vis2k
58528e5179 NetworkBehaviour.Invoker: removed unused DebugString function 2018-12-30 17:23:24 +01:00
vis2k
c1f510882d NetworkBehaviour: removed unused GetInvoker function 2018-12-30 17:23:00 +01:00
vis2k
9c21f76234 Syntax 2018-12-30 17:14:28 +01:00
vis2k
53c1ea3788
Weaver passes cmd/rpc/targetrpc/event names instead of hashcodes now. HLAPI worries about sending hashcodes instead. 2018-12-30 17:13:03 +01:00
vis2k
283727b88a Removed Utils again 2018-12-30 17:02:49 +01:00
vis2k
be9206c27a Removed comment 2018-12-30 17:01:59 +01:00
vis2k
cc56bbd048 Weaver passes cmd/rpc/targetrpc/event names instead of hashcodes now. HLAPI worries about sending hashcodes instead. 2018-12-30 17:00:51 +01:00
vis2k
1b33f7d633 HLAPI: GetStableHashCode added too 2018-12-30 16:24:28 +01:00
vis2k
07ab30f366 Weaver: GetHashCode replaced with string.GetStableHashCode extension that is less weird and can be used in HLAPI too (without compiling with /unsafe flag) 2018-12-30 16:23:56 +01:00
vis2k
86c482cf60 NetworkBehaviour: improved error message 2018-12-30 15:56:38 +01:00
vis2k
ce803e1ea1 NetworkScenePostProcess: 'uvs' renamed to 'identities' 2018-12-30 15:54:29 +01:00
vis2k
163600c498 NetworkScenePostProcess: removed prefabWarnings HashSet because the extra code is not worth the rare case where we have more than one NetworkIdentity on a prefab. There is no harm in showing a warning for each one. 2018-12-30 15:29:45 +01:00
vis2k
b66a5784f1 Fixed comment typo 2018-12-30 15:27:02 +01:00
vis2k
9b49b34f3c NetworkScenePostProcess: rename 'uv' to 'identity' 2018-12-30 15:26:23 +01:00
vis2k
e19af230b9 NetworkScenePostProcess: replace 'var' with actual types 2018-12-30 15:25:56 +01:00
Paul Pacheco
79a0187292
Fix links in readme (#189) 2018-12-27 16:32:54 -06:00
Paul Pacheco
217e79476d
Reset the offset boundaries when we connect to a new server (#187) 2018-12-27 08:42:56 -06:00
vis2k
8ad8b8bf1a
Merge pull request #186 from paulpach/timeboundary
Dramatically improve accuracy of network time
2018-12-27 11:39:44 +01:00
vis2k
6c22c57d52
Merge pull request #183 from paulpach/stopwatch
Fix #182,  use Stopwatch to keep track of NetworkTime
2018-12-27 11:38:32 +01:00
Paul Pacheco
5c0670dc6a Dramatically improve accuracy of network time 2018-12-27 01:07:32 -06:00
Paul Pacheco
85c7d80099
Fix link to documentation (#185)
* Fix link to documentation

* Can't really merge anything without this
2018-12-26 19:18:28 -06:00
Paul Pacheco
e07ad53c55 Simplify stop watch initialization 2018-12-26 18:42:08 -06:00
Chris Langsenkamp
76b75dbb9b New Documentation (#184)
* Documentation Outline

* Spacing adjustments

* Captured old wiki content

* yml fix

* Docs work

* resize images

* Replaced images

* Removed md from links

* Renamed Misty to Fizzy

* Captured Unity docs

* links cleanup

* clear links

* Cleanup and moved NetworkBehavior to Classes.

* added slashes to yml paths

* reverted slashes

* Fixes bad link

* Update Ignorance.md

This should be enough documentation for now, yeah?

* Localized images

* Update Ignorance.md

formatting updates

* Lots of Cleanup

* fix link

* Formatting

* fix code blocks

* Lots of content and cleanup

* fixed yml

* Added blank line

* Added spaces in titles

* tightened bullets

* Fixed bullet spacing

* Fixed more bullets

* unbolded content

* Cleanup and removal of empty pages
Updated README with links to docs pages

* Restored prior version

* Contributing

* Improvements to content

* lower case fix

* fix link

* renamed Contributions

* fixed link

* home page content

* Fixed Encoding

* Moved Why TCP

* Replaced Unity with Mirror

* Telepathy Description

* changed to h2

* Moved Sample down

* Removed dead links

* Copied Contributions
Added Test
Fixed h3's

* Fixed headings

* added to Test

* Fixed image alts and links

* fixed last alt
2018-12-26 16:07:24 -06:00
Paul Pacheco
cf56c0ed79 fix #182, use Stopwatch instead of Datetime to keep track of network time 2018-12-26 09:16:39 -06:00
vis2k
a645406bd6
Merge pull request #180 from paulpach/readonlylist
SyncLists are now readonly in the client
2018-12-24 10:54:56 +01:00
Paul Pacheco
2dbdc5591d SyncLists are now readonly in the client
If users try to modify a synclist in the client, it will now complain loudly with an InvalidOperationException
instead of silently doing the change and breaking synclists.
2018-12-23 16:51:42 -06:00