MichalPetryka
86a11f4761
NetworkInformationPreview code cleanup (changes if to method call with ?: ( #204 )
2018-12-31 15:42:03 -06:00
vis2k
81d98015b7
Replace NetworkSettings and GetSendInterval with NetworkBehaviour.syncInterval ( #202 )
...
* Remove NetworkSettings attribute and the weird weaver code
* Replace GetNetworkSendInterval with sendInterval field
* rename to SyncInterval
* Tooltip
* Add comment
* NetworkBehaviourInspector shows syncInterval as slider and only if it has OnSerialize
* Rename var
* Adjust NetworkTransform Editors too
* Obsolete NetworkSettingsAttribute
2018-12-31 19:44:06 +01:00
vis2k
e6d16b68fd
Merge pull request #201 from vis2k/weaver_improvements
...
Weaver improvements
2018-12-31 19:37:37 +01:00
vis2k
37659d5d4d
Use actual type instead of var
2018-12-31 16:55:50 +01:00
vis2k
8659b2a989
Rename GenerateCommandDelegate to GenerateRegisterCommandDelegate because that's what it does
2018-12-31 16:54:38 +01:00
vis2k
91e13ce87a
GenerateSyncListInstanceInitializer comment added
2018-12-31 16:53:04 +01:00
vis2k
648cb0ba1a
ProcessVersion comment added
2018-12-31 16:48:39 +01:00
vis2k
cae59e82ad
WriteServerActiveCheck comment added
2018-12-31 16:47:11 +01:00
vis2k
2333446e5a
WriteClientActiveCheck comment added
2018-12-31 16:45:38 +01:00
vis2k
dd28896f34
Weaver GenerateConstants: use for int instead of separate counting variable
2018-12-31 16:31:12 +01:00
vis2k
c19fb132f0
Merge pull request #198 from vis2k/weaver_divide_and_conquer
...
Weaver divide and conquer
2018-12-31 16:30:22 +01:00
vis2k
8d8c3f70f1
Static classes
2018-12-31 16:07:14 +01:00
vis2k
83f72e8598
Weaver processors shorter names
2018-12-31 16:04:00 +01:00
vis2k
300572470e
Weaver processor classes moved into Processors folder
2018-12-31 16:00:08 +01:00
vis2k
39a599963a
Weaver ProcessEvents moved into NetworkBehaviourSyncEventProcessor too
2018-12-31 15:58:39 +01:00
vis2k
4f5f76e42f
Weaver SyncVar processing moved into NetworkBehaviourSyncVarProcessor
2018-12-31 15:58:04 +01:00
vis2k
181e1231d7
Weaver Validate methods generation moved into their classes
2018-12-31 15:58:04 +01:00
vis2k
5ffe496b25
Weaver SyncEvent processing moved into NetworkBehaviourSyncEventProcessor
2018-12-31 15:58:04 +01:00
vis2k
a12ac8e8b0
Weaver [TargetRpc] processing moved into NetworkBehaviourTargetRpcProcessor
2018-12-31 15:58:04 +01:00
vis2k
b9963fdf4d
Weaver [Rpc] processing moved into NetworkBehaviourRpcProcessor
2018-12-31 15:58:04 +01:00
vis2k
02202070d0
Weaver [Command] processing moved into NetworkBehaviourCommandProcessor
2018-12-31 15:58:04 +01:00
vis2k
aa7ba82064
Merge pull request #195 from vis2k/remove_networkserverclient_networkconnectionclass_magic
...
Remove networkserverclient networkconnectionclass magic
2018-12-31 15:56:49 +01:00
vis2k
9fe8872968
Cmd/Rpc/TargetRpc/SyncEvent hashing uses hash(Type:Func) instead of hash(Func), so that Inventory.RpcUse is not called for Equipment.RpcUse etc. Original Weaver did this too, forgot to do it when moving hash calculation to HLAPI.
2018-12-31 14:02:34 +01:00
vis2k
cbf8a462d0
Comment added
2018-12-31 00:30:58 +01:00
vis2k
083e0cc57d
UNetBehaviourProcessor renamed to NetworkBehaviourProcessor
2018-12-31 00:30:19 +01:00
vis2k
a19cb6859c
SyncListStructProcessor: fixed error messages. Looks like they were copied over from MessageClassProcessor without changing them.
2018-12-31 00:29:21 +01:00
vis2k
42f975e62f
Use actual types instead of var
2018-12-31 00:24:42 +01:00
vis2k
70a378678d
SyncListStructProcessor comment added
2018-12-31 00:22:54 +01:00
vis2k
62c04da8c7
MessageClassProcessor comment added
2018-12-31 00:21:42 +01:00
vis2k
df9c996ccc
Use actual type instead of var
2018-12-31 00:19:25 +01:00
vis2k
c5b2d0f1c8
Use actual type instead of var
2018-12-31 00:18:32 +01:00
vis2k
202948f320
MonoBehaviourProcessor comment added
2018-12-31 00:17:30 +01:00
vis2k
0ee375215b
Weaver: removed unused MakeGenericType function
2018-12-31 00:14:32 +01:00
vis2k
97a30e9599
Weaver: removed unused MakeHostInstanceGeneric function
2018-12-31 00:14:10 +01:00
vis2k
ac2361611b
Syntax
2018-12-31 00:12:47 +01:00
vis2k
b88eaf527c
Use string instead of var
2018-12-31 00:12:39 +01:00
vis2k
29f55fed48
Removed unused Weaver ResolveInheritanceHierarchy function
2018-12-31 00:10:25 +01:00
vis2k
ea1e571ccd
NetworkIdentity: group fields together
2018-12-30 23:55:27 +01:00
vis2k
e2cd6977d6
Syntax
2018-12-30 23:51:52 +01:00
vis2k
db9244a977
Syntax
2018-12-30 23:50:14 +01:00
vis2k
3cf87c8238
NetworkManager.UpdateScene: use && instead of early return
2018-12-30 23:47:47 +01:00
vis2k
fa02b01f7b
NetworkManager.StartHost: use actual type instead of var
2018-12-30 23:44:50 +01:00
vis2k
49a5ed7b2b
NetworkManager.RegisterClientMessages: use actual type instead of var
2018-12-30 23:44:05 +01:00
vis2k
b1e7938160
NetworkServer.DestroyPlayerForConnection: use actual type instead of var
2018-12-30 23:38:22 +01:00
vis2k
c2008654b4
SendSpawnMessage: added a comment about missing msg.rotation for scene objects
2018-12-30 23:36:52 +01:00
vis2k
b7e80514b5
NetworkServer.SetClientReadyInternal moved into SetClientReady because we can't override it anyway
2018-12-30 23:25:12 +01:00
vis2k
3ef7df8a72
NetworkServer.SendToClientOfPlayer simplified: doesn't loop through all connections anymore, which was crazy
2018-12-30 23:09:08 +01:00
vis2k
8031f7b55c
Removed empty line
2018-12-30 23:02:26 +01:00
vis2k
3d99ce2928
NetworkServer.InternalUpdate moved into Update because we can't inherit from it anymore anyway
2018-12-30 23:02:11 +01:00
vis2k
a0aa55da97
NetworkServer.InternalDisconnectAll moved into DisconnectAll. The class can't be inherited from anymore, no need for an internal version here.
2018-12-30 23:00:36 +01:00