Commit Graph

12 Commits

Author SHA1 Message Date
Paul Pacheco
a6b62f1608 Simplify authority assignment 2018-07-03 07:35:09 -05: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
3a3f4267d5 NetworkServer.localConnections and localConnectionsFakeList replaced with .localConnection. The old lists were only for downwards compatibility, HLAPI didn't even use local connection lists anymore - it always contained only the m_localConnection entry. 2018-06-22 12:14:41 +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
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
d976add1f8 NetworkIdentity.OnStartClient: isClient is set to true without checking if it's false 2018-06-12 22:32:04 +02:00
vis2k
3fe7e56ff5 NetworkIdentity.isServer simplified 2018-06-12 22:31:00 +02:00
vis2k
7fd77a0e4b NetworkWriter.Position type changed from 'short' to 'int' to fix a bug where writing >32kb into NetworkWriter would result in negative .Position 2018-06-08 15:30:54 +02:00
vis2k
de27baa1b4 Applied HLAPI 2018.1 downwards compatible improvements 2018-06-08 14:23:59 +02:00
vis2k
9980e5e713 OnSerializeSafely & OnDeserializeSafely, independent of sibling components and with detailed errors to avoid out of range exceptions if any one component failed or didn't read/write the expected amount 2018-06-08 10:45:24 +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