Commit Graph

1599 Commits

Author SHA1 Message Date
vis2k
5f7c4d48b4 NetworkServer.AddLocalClient renamed to SetLocalConnection because that's what it does. The connection is created in LocalClient now too, this way NetworkServer doesn't need to depend on LocalClient(!) 2019-03-24 21:15:05 +01:00
vis2k
829da79288 LocalClient.InternalConnectLocalServer sets connectionId to 0 directly instead of getting it from NetworkServer.AddLocalClient (which shows an error message if failed anyway) 2019-03-24 21:07:41 +01:00
vis2k
56c163d9cd NetworkServer.RemoveLocalClient renamed to RemoveLocalConnection because NetworkServer only keeps a local connection, not a local client 2019-03-24 21:07:41 +01:00
uwee
6db11b298b Add the name of the Message back to the debug
The random int representing the Message is less human readable.
2019-03-24 14:50:13 -05:00
vis2k
ca2c72aee8 NetworkServer.s_LocalConnection replaced with .localConnection private setter 2019-03-24 20:46:34 +01:00
Paul Pacheco
48674151f0 perf: don't varint bytes and shorts 2019-03-24 14:45:03 -05:00
vis2k
bdf12c85d0 fix: #640 InternalReplacePlayerForConnection calls SpawnObserversForConnection now too 2019-03-24 19:41:41 +01:00
vis2k
a2d6317642 fix: #573 NullReferenceException because destroyed NetworkIdentities were never removed from sceneIds dict 2019-03-24 19:28:25 +01:00
rodolphito
1e5fc3cde5 Made dirty bits not rely on NetworkWriter position manipulation hackery. (#636)
* Made dirty bits not rely on NetworkWriter position manipulation hackery.

* Renamed GetDirtyBits to NextDirtyBits, as discussed with Paul.

* Expanded one line ifs.
2019-03-24 12:43:39 -05:00
Paul Pacheco
a495f66fc1
refactor: configure frame rate in a virtual method (#638)
Moved frame rate configuration into a virtual method so that people can override it and we reduce StartServer complexity

Fixes #567
2019-03-24 08:58:11 -05:00
vis2k
2d492607c8 pong example: ball is only simulated on server now 2019-03-24 14:38:22 +01:00
Paul Pacheco
4fddb8c8a7
docs: remove deprecated messages 2019-03-24 08:13:31 -05:00
vis2k
e521a20052 fix: #573 (part 2) NetworkManager detects additive scene loads and respawns objects on server/client again 2019-03-24 13:24:29 +01:00
vis2k
c1af84e6bf fix: #573 (part 1) NetworkScenePostProcess handles NetworkIdentities of all scenes except DontDestroyOnLoad. this way it works for additively loaded scenes too. 2019-03-24 13:24:29 +01:00
vis2k
603dfa1fe9 don't use continue and improve comments 2019-03-24 13:24:29 +01:00
vis2k
051cd7cf66 add comment 2019-03-24 13:24:29 +01:00
vis2k
bce7c54fa1 NetworkScenePostProcess: only set inactive if this was actually a valid scene object 2019-03-24 13:24:29 +01:00
rodolphito
b3595d3f5d Code simplification and optimization. (#635) 2019-03-24 10:47:14 +01:00
Zac North
7d21bded9a feat(syncvar): Add SyncDictionary (#602)
* Added basic SyncDictionary support, no support for structs yet

* Fixed TryGetValue usage

* Removed extraneous hardcoded SyncDictionary type

* Added a couple basic tests, more coming

* Added 4 more tests

* Added two tests and SyncDictionary now bubbles item to Callback on Remove (both Remove cases)

* Added the remainder of tests

* Added basic documentation about SyncDictionaries on StateSync.md page

* Simplify test syntax

Co-Authored-By: Katori <znorth@gmail.com>

* Simplify test syntax

Co-Authored-By: Katori <znorth@gmail.com>

* Simplify test syntax

Co-Authored-By: Katori <znorth@gmail.com>

* Simplify test syntax

Co-Authored-By: Katori <znorth@gmail.com>

* Remove null-check when setting value directly (and updated expected test behaviour)

* fix: Provide default implementation for SyncDictionary serializers

* feat: Add Weaver support for syncdictionary

* Fix minor issue with Set code and made test use Weaved serialization instead of manual

* Added a new test for bare set (non-overwrite)

* Added another test for BareSetNull and cleaned up some tests

* Updated SyncDictionary documentation on StateSync.md

* Update docs with SyncDictionary info

* Update SyncDictionary docs wording

* docs: document the types and better example

* Add two SyncDictionary constructors

* Removed unnecessary initialization

* Style fixes

* - Merged many operation cases
- Fixed Contains method
- Added new test to test contains (and flag its earlier improper usage)
- Use PackedUInt32 instead of int for Changes and Counts

* - Simplify "default" syntax
- Use Rodol's remove method (faster)
- Don't use var

* Removed unnecessary newline, renamed <B, T> to <K, V> per vis2k, corrected wording of InvalidOperationException on ReadOnly AddOp

* Code simplification, style fixes, docs example style fixes, newly improved implementation for CopyTo that fails gracefully
2019-03-24 10:18:31 +01:00
rodolphito
fea46b801d Remove NetworkAnimatorEditor and animator parameter mask. (#633) 2019-03-24 09:39:51 +01:00
MrGadget
0fd8218d48
Update ChangeLog.md 2019-03-23 18:28:54 -04:00
vis2k
67d715fe74 fix: Telepathy updated to latest version: protect against allocation attacks via MaxMessageSize. Can be configured in the TelepathyTransport component now. 2019-03-23 20:34:48 +01:00
Zac North
b0af876221 fix(tests): Added missing SyncListByteValid test file (#634)
* Added missing SyncListByteValid test file (passing)

* Added a missing newline
2019-03-23 18:40:38 +01:00
MrGadget
565fe58671
Update ChangeLog.md 2019-03-23 13:37:14 -04:00
Paul Pacheco
d823c8fe96
docs: improve synclist elevator statement 2019-03-23 07:26:33 -05:00
Paul Pacheco
b91b14f0b6
docs: rewrote synclist docs
Don't focus on what was changed from HLAPI.
Instead document what synclists are first.  Then list the differences.
2019-03-23 07:24:02 -05:00
MichalPetryka
1595fb07b1 PreprocessorDefine rework (#626)
perf: speed up preprocessor define
2019-03-23 06:59:35 -05:00
vis2k
1bf2f9ee56 Update List Server demo text 2019-03-23 12:51:39 +01:00
MrGadget
94ecf03c9d
Merge pull request #631 from MrGadget1024/IntegrationsDocs
resized image
2019-03-22 13:02:55 -04:00
Chris Langsenkamp
9d55913c29 resized image 2019-03-22 13:01:44 -04:00
MrGadget
0f546667ea
Merge pull request #630 from MrGadget1024/IntegrationsDocs
switched the image names
2019-03-22 13:00:37 -04:00
Chris Langsenkamp
02ce5c27f8 Added Dissonance 2019-03-22 12:55:52 -04:00
Chris Langsenkamp
2b82f13eb3 switched the image names 2019-03-22 12:50:49 -04:00
MrGadget
77172bd0d4
Merge pull request #629 from MrGadget1024/IntegrationsDocs
Renamed image files and put them into index.md
2019-03-22 12:31:53 -04:00
Chris Langsenkamp
aac498df4b Updated Navigation for Integrations 2019-03-22 12:27:40 -04:00
Chris Langsenkamp
97f1f45d67 Renamed image files and put them into index.md 2019-03-22 12:24:44 -04:00
vis2k
4eb01da0c1 update welcome message 2019-03-22 17:19:05 +01:00
MrGadget
2ef17af3c5
Add files via upload 2019-03-22 12:07:55 -04:00
MrGadget
12f6a4e2bf
Create index.md 2019-03-22 12:04:11 -04:00
MrGadget
5494f1a857
Update ChangeLog.md 2019-03-22 10:35:53 -04:00
MrGadget
571010f931
Update ChangeLog.md 2019-03-22 10:34:08 -04:00
MrGadget
0e2246e2ee
Update navigation.yml
Added navigation for SyncDictionary and SyncHashSet
2019-03-22 09:53:13 -04:00
MrGadget
b544127561
Create SyncHashSet.md 2019-03-22 09:51:29 -04:00
MrGadget
fa4d6d3f78
Create SyncDictionary.md 2019-03-22 09:50:43 -04:00
MrGadget
f46716c3d0
Update ChangeLog.md 2019-03-22 09:11:41 -04:00
MrGadget
737336ab88
Update ChangeLog.md 2019-03-22 09:09:45 -04:00
vis2k
fa04185fa8 remove empty line 2019-03-22 14:08:59 +01:00
vis2k
c194771084 ClientScene.DestroyAllClientObjects simplified: use .Values 2019-03-22 14:05:47 +01:00
vis2k
6e11429699 NetworkClient.Shutdown made static too. ShutdownAll made obsolete. 2019-03-22 13:56:43 +01:00
vis2k
1d94464023 NetworkClient.ShutdownAll calls .Shutdown 2019-03-22 13:54:20 +01:00