Commit Graph

4823 Commits

Author SHA1 Message Date
vis2k
368543b734 NetworkConnection.IsSequencedQoS/IsReliableQoS/IsUnreliableQoS moved out of NetworkConnection class into UNetwork.cs because it's a helper function used in other places too, and makes NetworkConnection.cs less complex. 2018-07-17 22:28:31 +02:00
vis2k
f57d5ae905 NetworkConnection Send/SendUnreliable/SendByChannel syntax improved 2018-07-17 22:17:31 +02:00
vis2k
38142a6d6f NetworkConnection.m_Writer isn't cached anymore to simplify code 2018-07-17 22:16:09 +02:00
vis2k
ffa6e4e2ea NetworkCRC removed because all it did was compare each script's channelIds by sending all the script names over the network. This uses unnecessary bandwidth, causes unnecessary code complexity and makes no real sense because there's virtually no reason why anyone would modify a script's channel after building the server/client. 2018-07-17 22:06:26 +02:00
Lymdun
0bf13c3ea9 No point for ReadSByte() to use reader.ReadByte() with a cast 2018-07-17 19:16:38 +00:00
Paul Pacheco
869896495a Merged in paulpach/hlapi-community-edition/unittest (pull request #33)
Test WritePackedUInt32
2018-07-17 12:27:41 +00:00
Paul Pacheco
bb605930ea Test packed UInt64 2018-07-17 07:22:46 -05:00
Paul Pacheco
6581497e0c Test WritePackedUInt32 2018-07-17 07:15:14 -05:00
Paul Pacheco
0ee0975695 Display badges for the Improvement branch 2018-07-16 23:01:10 +00:00
Paul Pacheco
b7eabcc8c3 Document the project in the readme file 2018-07-16 17:51:20 -05:00
vis2k
ffab181ea2 Messages: removed Peer messages because they aren't used anymore after removing the Host Migration feature 2018-07-16 21:22:17 +02:00
vis2k
7c3ce78cb4 NetworkServer.SendToReady/SendUnreliableToReady reuse SendByChannelToReady function; also uses consistent null checks and return values for all now. 2018-07-16 20:17:20 +02:00
vis2k
6f667ee2c8 NetworkServer.SendToAll/SendUnreliableToAll reuse SendByChannelToAll function 2018-07-16 20:10:43 +02:00
vis2k
225c7955cd NetworkClient.Send/SendUnreliable reuse SendByChannel function 2018-07-16 20:01:20 +02:00
vis2k
99784f58d9 NetworkHash128 tests added 2018-07-16 15:50:55 +02:00
vis2k
0cc23e411b NetworkHash128: fixed missing ) in comment 2018-07-16 15:49:13 +02:00
vis2k
6db02511cd NetworkHash128 tests added 2018-07-16 15:25:56 +02:00
vis2k
dc10b8f9d6 NetworkHash128 simplified and comments added 2018-07-16 15:24:24 +02:00
vis2k
847033b05a MIT License added 2018-07-16 11:48:51 +02:00
Paul Pacheco
b489506352 Merged in paulpach/hlapi-community-edition/coverage (pull request #29)
Add code coverage report
2018-07-16 08:59:22 +00:00
Paul Pacheco
e03c6c0dd1 Add code coverage report 2018-07-15 14:12:59 -05:00
Paul Pacheco
1d1a3e7f42 Merged in paulpach/hlapi-community-edition/unittest (pull request #28)
Set up unit test project
2018-07-15 18:33:53 +00:00
Paul Pacheco
7e1505d8ac Set up unit test project 2018-07-15 13:15:06 -05:00
Paul Pacheco
f42cd36e69 Merged in paulpach/hlapi-community-edition/appveyor (pull request #27)
Add base appveyor build config
2018-07-15 17:16:32 +00:00
Paul Pacheco
21cef5cf9c Add base appveyor build config 2018-07-15 11:53:59 -05:00
vis2k
5a20083536 NetworkServer.s_sync removed because it's not needed anymore 2018-07-15 12:37:24 +02:00
Paul Pacheco
0022da41d4 Merged in paulpach/hlapi-community-edition-lag/conditional (pull request #25)
Simplify authority assignment
2018-07-09 10:30:25 +00:00
Paul Pacheco
2ea1a9ef2d Merged in paulpach/hlapi-community-edition-lag/simpleready (pull request #21)
Make the logic simpler for ensuring the connection is ready
2018-07-03 17:21:07 +00:00
Paul Pacheco
a6b62f1608 Simplify authority assignment 2018-07-03 07:35:09 -05:00
Paul Pacheco
d3f23f7f04 Merged in paulpach/hlapi-community-edition-lag/reset2 (pull request #22)
Properly reset scene gameobjects when we receive OnObjectSpawnScene
2018-06-29 08:44:29 +00:00
vis2k
56a3bf05cd NetworkBehaviour.InvokeCommandDelegate 'IsInstanceOfType' comments added 2018-06-29 10:37:04 +02:00
Paul Pacheco
b9b98ad9be Merged in paulpach/hlapi-community-edition-lag/simpleinvoke (pull request #23)
Simplify command invocation
2018-06-29 08:32:37 +00:00
Paul Pacheco
eff9287236 Simplify command invocation 2018-06-28 22:47:33 -05:00
Paul Pacheco
78d159d7da Properly reset scene gameobjects when we receive OnObjectSpawnScene 2018-06-28 19:05:20 -05:00
Paul Pacheco
8d4f6915d1 Make the logic simpler for ensuring the connection is ready 2018-06-28 08:50:13 -05:00
vis2k
ec7185ad49 Removed spaces 2018-06-28 14:46:19 +02:00
Paul Pacheco
056dc5c0c9 Merged in paulpach/hlapi-community-edition-lag/findlocal (pull request #18)
Simplify finding object
2018-06-28 12:38:59 +00:00
Paul Pacheco
35590bec44 Simpler find local object 2018-06-26 11:23:14 -05:00
Paul Pacheco
df0c183628 Merged in paulpach/hlapi-community-edition-lag/debugbuild2 (pull request #12)
Fixed debug build
2018-06-26 10:13:37 +00:00
vis2k
72ac13e74e NetworkClient.UpdateClients: remove null clients first, then update valid clients. Fixes a bug where if a client was removed, the next one would be skipped. 2018-06-26 12:09:04 +02:00
Paul Pacheco
7a0d7dc654 Merged in paulpach/hlapi-community-edition-lag/simplerinit (pull request #13)
Simplify Network Discovery Initializing
2018-06-25 07:34:58 +00:00
Paul Pacheco
bc20d2cbe9 Simplify Network Discovery Initializing 2018-06-24 10:53:38 -05:00
Paul Pacheco
6b97f04960 Fixed debug build 2018-06-24 09:45:41 -05:00
Paul Pacheco
ba7133381d Merged in paulpach/hlapi-community-edition-lag/vsgen (pull request #11)
Ignore .vs folder that VS generates
2018-06-24 06:37:23 +00:00
Paul Pacheco
db34048bab Ignore .vs folder that VS generates 2018-06-23 10:52:20 -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
c86f2618a8 NetworkServerSimple removed again to greatly reduce complexity. 2018-06-22 20:01:27 +02:00
vis2k
11845a9b04 NetworkServer.InternalUpdate always calls UpdateConnections, so we can remove it from NetworkServerSimple.Update and we can remove the dontListen check. 2018-06-22 14:08:32 +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
77057328c8 NetworkWriter.FinishMessage size check added to make sure that it fits into ushort 2018-06-22 09:32:19 +02:00