Commit Graph

10 Commits

Author SHA1 Message Date
vis2k
54d5ede3e7 UNetwork.Protocol handles message packing and unpacking in one place now, so that we don't construct/deconstruct size/type headers manually everywhere. This way we can change the header any time without worrying about missing it somewhere. 2018-08-06 18:50:11 +02:00
vis2k
8dc9cc2ee8 LocalClient.InvokeHandlerOnClient removed because it wasn't used anymore after removing LocalClients redundancies before 2018-08-06 15:23:07 +02:00
vis2k
ee2d0373eb UNetwork.MsgType converted to Enum. Easier + faster string conversion and more flexible code. 2018-07-19 21:03:00 +02:00
vis2k
59cc34eaa8 NetworkServer made entirely static, there was no real reason to have an instance since only one was active anyway. Reduces complexity, simplifies code. 2018-06-22 20:34:35 +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
cc9f08e178 LocalClient: removed static message caching 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
de27baa1b4 Applied HLAPI 2018.1 downwards compatible improvements 2018-06-08 14:23:59 +02:00
vis2k
1e77e191b3 HLAPI 2017.4 (from https://bitbucket.org/Unity-Technologies/networking/src 2017.3, which is the same for 2017.4) 2018-06-07 15:41:08 +02:00