Commit Graph

8322 Commits

Author SHA1 Message Date
vis2k
3047539600 Removed UNET_HOST_MIGRATION code (wasn't stable and hosting on other people's computers never works well anyway) 2018-06-22 09:32:19 +02:00
vis2k
0a34efbaf4 NetworkReader/Writer use C#'s built in BinaryReader/Writer; removed NetworkBuffer; removed redundant .AsArray()/AsArraySegment() functions; removed unnecessary constructors 2018-06-22 09:32:19 +02:00
vis2k
c81c670c95 ConnectionArray: syntax improved to simplify code 2018-06-22 09:32:19 +02:00
vis2k
b7d128ba73 ClientScene: syntax improved to simplify code 2018-06-22 09:32:19 +02:00
vis2k
0329ed787f ChannelBuffer: removed static NetworkWriter caching to simplify code 2018-06-22 09:32:19 +02:00
vis2k
cc9f08e178 LocalClient: removed static message caching 2018-06-22 09:32:19 +02:00
vis2k
efd5c6c1ff NetworkReader/NetworkWriter uses C#'s built in BitConverter for bytes to/from float/double conversion 2018-06-22 09:32:19 +02:00
vis2k
2c80d29350 NetworkReader.ReadString doesn't convert to char[] and then to string anymore, uses Encoding.GetString instead 2018-06-22 09:32:19 +02:00
vis2k
eb65e7fba0 NetworkReader static string buffer caching removed to simplify code 2018-06-22 09:32:19 +02:00
vis2k
458bbc0566 NetworkWriter static string buffer caching removed to simplify code 2018-06-22 09:32:19 +02:00
vis2k
9de07af7c9 NetworkLobbyManager.FindSlot changed to int so it can return '-1' for 'not found', which is more obvious than Byte.MaxValue 2018-06-22 09:32:19 +02:00
vis2k
3ac3790ee7 Removed all [Obsolete] code 2018-06-22 09:32:19 +02:00
vis2k
df67e85e50 NetworkLobbyManager: syntax improved to simplify code 2018-06-22 09:32:19 +02:00
vis2k
b571a60080 NetworkLobbyPlayer: removed pointless 'dirty' flag writing since it's always '1' anyway 2018-06-22 09:32:19 +02:00
vis2k
32d780f02f NetworkManager: syntax improvements to simplify code 2018-06-22 09:32:19 +02:00
vis2k
049a73b5a8 NetworkProximityChecker: syntax improved to simplify code 2018-06-22 09:32:19 +02:00
vis2k
6504349fd9 SyncList: removed Obsolete functions 2018-06-22 09:32:19 +02:00
vis2k
7756f75ff1 NetworkServer: syntax improved to simplify code 2018-06-22 09:32:19 +02:00
vis2k
62399b4267 NetworkServer: removed removeList caching to simplify code 2018-06-22 09:32:19 +02:00
vis2k
de1cadc709 NetworkScene: syntax improvements to simplify code 2018-06-22 09:32:19 +02:00
vis2k
a9d87b512e NetworkIdentity: removed static NetworkWriter caching to simplify code 2018-06-22 09:32:19 +02:00
vis2k
d8d3ee677e NetworkIdentity: syntax improvements to simplify code 2018-06-22 09:32:19 +02:00
vis2k
ebb0844bcc NetworkConnection: syntax improvements to simplify code 2018-06-22 09:32:19 +02:00
vis2k
5fd74c29ec NetworkClient: no more fixed error buffer size 2018-06-22 09:32:19 +02:00
vis2k
4bc0711a9d NetworkClient: syntax improvements to simplify code 2018-06-22 09:32:19 +02:00
vis2k
8a976f94a2 NetworkBehaviour: syntax improvements to simplify code 2018-06-22 09:32:19 +02:00
vis2k
9e8bde6e81 Messages: syntax improvements, removed some unnecessary casts, removed some unnecessary allocations in structs 2018-06-22 09:32:19 +02:00
vis2k
aff994a1b0 LocalClient: removed static message caching to simplify code and reduce state 2018-06-22 09:32:19 +02:00
vis2k
8a748281de LocalClient: List.AddRange used instead of manually copying all entries 2018-06-22 09:32:19 +02:00
vis2k
9f14fa37f8 ChannelPacket.SendToTransport error checking flow improved for shorter and easier understandable code 2018-06-22 09:32:19 +02:00
vis2k
183d1464d5 ChannelPacket: variables moved to the top of the file 2018-06-22 09:32:19 +02:00
vis2k
798afca9ec ChannelBuffer: removed static message caching to simplify code and reduce state 2018-06-22 09:32:19 +02:00
vis2k
d1e53f5811 NetworkLobbyManager.OnValidate simplified by using Mathf.Clamp 2018-06-22 09:32:19 +02:00
vis2k
0c89e11c9f NetworkLobbyManager.OnValidate simplified by using Mathf.Clamp/Min/Max 2018-06-22 09:32:19 +02:00
vis2k
dd6f47a82d LogFilter: removed redundant log level definitions 2018-06-22 09:32:19 +02:00
vis2k
db4fe1a0f9 NetworkWriter comment improved 2018-06-22 09:32:19 +02:00
vis2k
d8dc0b829b NetworkServer: removed static message caching to simplify code and reduce state 2018-06-22 09:32:19 +02:00
vis2k
1f2f874874 NetworkManager: removed static message caching to simplify code and reduce state 2018-06-22 09:32:19 +02:00
vis2k
734db6edfe NetworkLobbyManager: removed static message caching to simplify code and reduce state 2018-06-22 09:32:19 +02:00
vis2k
8e7095262f NetworkClient: removed static message caching to simplify code and reduce state 2018-06-22 09:32:19 +02:00
vis2k
8957af215c NetworkAnimator: removed static message caching to simplify code and reduce state 2018-06-22 09:32:19 +02:00
vis2k
0d175c2844 ClientScene: removed static message caching to simplify code and reduce state 2018-06-22 09:32:19 +02:00
vis2k
c64e849b1b NetworkProximityChecker: replaced SetVis with GetComponentsInChildren 2018-06-22 09:32:19 +02:00
Paul Pacheco
5acaf30f3a Fix references to sibling project instead of built dll 2018-06-22 09:31:45 +02:00
vis2k
aeae41051a Updated license for HLAPI Community Edition. 2018-06-14 12:46:00 +02:00
vis2k
2388b4c0ee Updated Readme to 'HLAPI Community Edition' 2018-06-13 12:43:34 +02:00
vis2k
ae611cf82c NetworkServer.DestroyPlayersForConnection: removed unnecessary 'empty player list given to NetworkServer' warning that might happen while players are still in a lobby without entering the game world yet 2018-06-13 11:24:41 +02:00
vis2k
be9efea78c ChannelBuffer, NetworkServer: consistent packet max size check with > UInt16.MaxValue (=64kb) instead of short.MaxValue which would limit packet size to 32kb; also uses consistent '<' check now instead of '<=' sometimes 2018-06-12 22:35:36 +02:00
vis2k
b8a289ba49 ChannelBuffer MaxBufferedPackets log message fixed, logs proper max value now 2018-06-12 22:32:24 +02:00
vis2k
d976add1f8 NetworkIdentity.OnStartClient: isClient is set to true without checking if it's false 2018-06-12 22:32:04 +02:00