Commit Graph

347 Commits

Author SHA1 Message Date
Chris Langsenkamp
47798ef20e Updated doc images 2020-04-24 07:53:05 -04:00
Chris Langsenkamp
a2eeef7fac Updated 2 docs for phrasing. 2020-04-24 05:14:19 -04:00
Chris Langsenkamp
54fa1b105a Updated Deprecations doc 2020-04-23 21:01:17 -04:00
MrGadget
a2eb666f15
feat: Disconnect Dead Clients (#1724)
* feat: Disconnect Dead Clients

* Moved code to NetworkConnectionToClient

* Fixed type

* WIP

* Trying to solve the mystery of the Host

* Updated Example

* fixed comment whitespace

* Final Cleanup and Unit Test

* Removed extra warning

* Reverted change to scene file

* Changed to Play test, still not working

* Added NetworkServer.Update time loop

* Removed commented code

* fixed comment

* Filled in ServerDisconnect so it behaves as expected.

* fixed comment

* Renamed to bool IsClientAlive

* Should be greater than

* Added override that shouldn't be necessary.

* changed asserts per Paul

* Flipped < back

* Shortened test time

* Corrected comment

* Lost the 1

* Updated NetworkServerTest

* Update Assets/Mirror/Tests/Runtime/NetworkServerTest.cs

* Added bool checkInactiveConnections

* Tests for sync dictionary and sync set (#1753)

* sync dictionary tests

* rename

* changing error message

* sync set tests

* silence unused method warning

* test class name matches file name

* test class name matches file name

* test class name matches file name

* test class name matches file name

* test class name matches file name

* test class name matches file name

* test class name matches file name

* Scope syncdict tests to their classes

* Scope synclists tests to their classes

* Scope syncset tests to their classes

* test class name matches file name

* Scope sample classes

* test class name matches file name

* fix: call the virtual OnRoomServerDisconnect before the base

* fixed name

* doc: Updated docs

* Moved serverIdleTimeout to NetworkManager

* fixed test to enable disconnectInactiveConnections

* Copied disconnectInactiveConnections & serverIdleTimeout to NetworkServer

Co-authored-by: James Frowen <jamesfrowendev@gmail.com>
Co-authored-by: Paul Pacheco <paulpach@gmail.com>
2020-04-23 21:50:35 +02:00
Chris Langsenkamp
6e03a538fe doc: Updated ChangeLog and Deprecations docs 2020-04-21 03:40:28 -04:00
Chris Langsenkamp
8e7bb44c3a Updated docs, comments, template pursuant to renaming of OnNetworkDestroy 2020-04-20 09:42:16 -04:00
Chris Langsenkamp
0bee908720 Updated ChangeLog & Deprecations 2020-04-19 17:55:20 -04:00
Chris Langsenkamp
006021eeb7 doc: Updated ChangeLog 2020-04-17 10:57:48 -04:00
MrGadget
21acf66190
feat: NetworkMatchChecker Component (#1688)
* feat: NetworkMatchChecker Component

* Added docs

* feat: Use logger framework for NetworkClient (#1685)

* Use logger framework for NetworkClient

* Update Assets/Mirror/Runtime/NetworkClient.cs

Co-authored-by: vis2k <info@noobtuts.com>

* breaking: NetworkVisbility component (#1681)

* backup

* breaking: NetworkProximityCheck abstract class. Simplifies code, reduces complexity, improves performance because if 10k identities have 10 components each, we don't have to iterate 100k components each time we rebuild observers.

* update tests and checkers

* DisallowMultipleComponents

* fix tests

* split OnCheckObserver check

* fix tests

* syntax

* update comment

* renamed to NetworkVisibility

* forgot to remove comment

* breaking: Network Visibility Component

* changing namespaces of performance tests (#1689)

* Updated to use NetworkVisibility

* Updated comments

* Updated OnCheckObserver and removed OnSetHostVisibility

* tests for OnCheckObserver

* adding check for empty guid

* tests for changing matchId

* RebuildObservers if player left a match

* Refactored to make it simpler

Co-authored-by: Paul Pacheco <paulpach@gmail.com>
Co-authored-by: vis2k <info@noobtuts.com>
Co-authored-by: James Frowen <jamesfrowendev@gmail.com>
2020-04-17 10:35:08 +02:00
Chris Langsenkamp
654084bf89 Added Booster to transports list 2020-04-16 17:37:13 -04:00
Chris Langsenkamp
1369bcf620 doc: Updated NetTrans and NetAnim docs and images 2020-04-16 17:33:54 -04:00
Chris Langsenkamp
9c3f5710eb Updated docs and comments re: Network Visibility 2020-04-12 07:54:28 -04:00
Chris Langsenkamp
54a365078b Updated Components doc 2020-04-10 20:52:23 -04:00
Chris Langsenkamp
c1fe2124d8 Removed SpawnWithClientAuthority from comments and docs 2020-04-09 16:51:41 -04:00
Chris Langsenkamp
38acfb2e3c Updated ChangeLog 2020-04-03 11:43:51 -04:00
Chris Langsenkamp
88f9bc16c8 Added Discord to transports list 2020-04-01 17:11:37 -04:00
Chris Langsenkamp
f33fd359cb doc: Updated ChangeLog 2020-03-29 15:08:50 -04:00
Chris Langsenkamp
459b8bf8e9 doc: Updated Deprecations 2020-03-29 15:04:10 -04:00
Chris Langsenkamp
d4366ecd73 doc: Updated ChangeLog 2020-03-26 16:32:38 -04:00
Chris Langsenkamp
d034ef616f feat: Added Virtual OnRoomStopServer to NetworkRoomManager and Script Template 2020-03-24 22:02:01 -04:00
MrGadget
c796116758
Remove Usage of LAN in HUD and Docs (#1592)
* Remove usage of LAN in HUD and docs

* Server + Client

* Host (Server + Client)

* HUD Image
2020-03-24 21:55:18 +01:00
Chris Langsenkamp
733bb92d37 doc: Updated SyncVar Hook doc 2020-03-24 08:39:08 -04:00
Chris Langsenkamp
e88249b972 doc: Updated ChangeLog 2020-03-24 08:31:31 -04:00
FirstGearGames
505b26fd17
Added video tutorial link (#1586) 2020-03-23 17:40:59 +01:00
Chris Langsenkamp
d040928948 doc: Updated ChangeLog 2020-03-21 14:38:38 -04:00
Chris Langsenkamp
04a8e86578 Updated SyncVarHook doc 2020-03-21 12:47:05 -04:00
Chris Langsenkamp
3f4f3c5c91 doc: Updated ChangeLog 2020-03-20 21:31:24 -04:00
Chris Langsenkamp
41e24420f6 doc: Updated ChangeLog 2020-03-20 20:40:35 -04:00
Chris Langsenkamp
5d5ee232d0 doc: Updated ChangeLog 2020-03-18 13:18:47 -04:00
Chris Langsenkamp
5cc77f21f6 doc: Updated ChangeLog 2020-03-18 12:54:52 -04:00
MrGadget
2d1b142276
fix: Prevent Double Call of NetworkServer.Destroy (#1554)
* fix: Prevent Double Call of NetworkServer.Destroy

* doc: Updated ChangeLog

* Extended comments and added LogWarning
2020-03-18 17:25:22 +01:00
Chris Langsenkamp
b32f0850d9 docs: Updated ChangeLog 2020-03-17 19:43:10 -04:00
Chris Langsenkamp
a4ffcbe280 fix: Updated NetworkRoomPlayer inspector and doc and image 2020-03-17 19:22:53 -04:00
Chris Langsenkamp
fe358f7120 docs: Updated ChangeLog 2020-03-17 18:58:14 -04:00
Chris Langsenkamp
a358e7d52a docs: Updated ChangeLog 2020-03-17 18:53:57 -04:00
Paul Pacheco
e133adf3ae docs: fix reference to .net classes 2020-03-01 14:04:53 -06:00
Paul Pacheco
00b923fedf docs: allow references to .net classes 2020-03-01 12:23:15 -06:00
Chris Langsenkamp
8040ebb5cf Updated Network Manager doc 2020-02-24 10:13:14 -05:00
Chris Langsenkamp
caab56d2fb docs: Updated ChangeLog 2020-02-23 11:38:30 -05:00
Chris Langsenkamp
25edcf0d41 docs: Updated SyncVar docs 2020-02-23 02:48:21 -05:00
Chris Langsenkamp
ce25eb5335 Updated Authentication doc 2020-02-23 00:32:24 -05:00
Chris Langsenkamp
b33311cabf docs: fixed typo 2020-02-23 00:31:46 -05:00
Chris Langsenkamp
487ac284c8 docs: Updated doc images 2020-02-22 22:01:44 -05:00
Chris Langsenkamp
245a428ba0 Updated Deprecations doc 2020-02-22 19:30:18 -05:00
Chris Langsenkamp
bb981ee940 Updated ChangeLog and Deprecations docs 2020-02-22 19:28:02 -05:00
Chris Langsenkamp
95051f47ba Updated Deprecations doc 2020-02-22 18:25:04 -05:00
Chris Langsenkamp
84c81b664c Updated Deprecations doc 2020-02-22 17:55:14 -05:00
Chris Langsenkamp
50828eda9c Updated Deprecations doc 2020-02-22 17:45:28 -05:00
MrGadget
b8bcd9ad25
fix: Add missing channelId to NetworkConnectionToClient.Send calls (#1509)
* fix: Add missing channelId to NetworkConnectionToClient.Send calls

* Updated ChangeLog

* Added braces

* Found one more
2020-02-20 09:51:03 +01:00
Chris Langsenkamp
bf47ae4cf1 removed blank line in doc 2020-02-18 12:11:55 -05:00
Sebastian König
c0feee8845
Changed namespace in code snippet. (#1505)
Added "using Mirror;" instead of "using UnityEngine.Networking;"
2020-02-18 12:10:04 -05:00
Chris Langsenkamp
3a0c7fb1ec fix: Fixed toc link 2020-02-18 11:34:07 -05:00
vis2k
d47a881f86 removed previous guide 2020-02-18 11:24:12 +01:00
Chris Langsenkamp
e5dec90499 docs: Updated various documents 2020-02-17 23:10:47 -05:00
vis2k
f4677ff627 docs: add links 2020-02-17 23:16:47 +01:00
vis2k
6ac804107f docs: add header 2020-02-17 22:43:08 +01:00
vis2k
6f91cf49c2 docs: added 'Cheat safe, local player movement beyond NetworkTransform' based on https://forum.unity.com/threads/making-player-movement-secure-with-mirror.829683/ 2020-02-17 22:41:33 +01:00
Chris Langsenkamp
c70a43b431 Removed ClientServers doc 2020-02-16 18:07:25 -05:00
Chris Langsenkamp
c0e4c033e9 Replaced RoomManager image 2020-02-15 16:25:42 -05:00
Chris Langsenkamp
da79d69ea6 Updated Authentication doc 2020-02-14 18:26:23 -05:00
Chris Langsenkamp
03ce7031ee Replaced Steam Transport Image 2020-02-14 10:16:22 -05:00
Chris Langsenkamp
01b2ed9d6e Updated NetworkSceneChecker doc 2020-02-12 14:18:56 -05:00
Paul Pacheco
6aa2d001e2
docs: document scriptable objects (#1494) 2020-02-12 08:39:38 -06:00
Chris Langsenkamp
22c8d3da5f Updated Transport docs 2020-02-11 19:16:29 -05:00
Derek S
3277fce728
Updated Discord-Mirror docs (#1493)
* Updated Discord-Mirror docs

* Update doc/Transports/DiscordMirror.md

Co-Authored-By: MrGadget <chris@clevertech.net>

Co-authored-by: MrGadget <chris@clevertech.net>
2020-02-11 19:09:23 -05:00
Chris Langsenkamp
2a9934f879 Tranports doc update 2020-02-11 18:28:31 -05:00
Chris Langsenkamp
5c8bf26a9f Updated ChangeLog 2020-02-10 18:00:05 -05:00
Chris Langsenkamp
67deaeaa76 Updated Chnagelog 2020-02-10 08:14:20 -05:00
Bug
64a59407ef Update ClientsServers.md (#1489)
NetworkServer.Listen(int) receives a maximum number of connections, not a port.
ref: https://mirror-networking.com/docs/api/Mirror.NetworkServer.html?q=NetworkServer
2020-02-08 14:49:41 -05:00
FirstGearGames
f5a7c6aa9f
Fixed missing video link image. (#1487) 2020-02-07 17:50:22 -05:00
FirstGearGames
d05a46101e
Added video tutorial link. (#1488) 2020-02-07 17:50:05 -05:00
Chris Langsenkamp
82a4af9a62 updated ChangeLog 2020-02-06 20:19:12 -05:00
Chris Langsenkamp
626f084a87 updated example code 2020-02-06 19:32:18 -05:00
Chris Langsenkamp
e3b299fec4 Updated ScriptTemplates doc
Removed zip file
2020-02-04 19:45:00 -05:00
Chris Langsenkamp
ed44c1b77d Updated ChangeLog 2020-02-04 12:42:27 -05:00
Chris Langsenkamp
f523fca10c Updated ChangeLog 2020-02-04 12:41:39 -05:00
Chris Langsenkamp
7c5d368ce8 Updated ChangeLog 2020-02-04 12:24:04 -05:00
Chris Langsenkamp
8bcc826ec6 Updated ChangeLog 2020-02-04 12:09:56 -05:00
Chris Langsenkamp
a5a9c7e7bc Updated ChangeLog 2020-02-03 13:59:19 -05:00
Chris Langsenkamp
b4a0830e3c Updated ChangeLog 2020-02-03 12:05:08 -05:00
Chris Langsenkamp
eeca74f93b Updated ChangeLog 2020-02-03 12:04:11 -05:00
Chris Langsenkamp
d07f847e28 Update ChangeLog 2020-02-02 15:19:10 -05:00
Chris Langsenkamp
a2c88d787d Updated ChangeLog 2020-02-01 13:08:44 -05:00
Chris Langsenkamp
abb570b309 Updated RemoteActions Doc 2020-01-31 22:04:51 -05:00
Chris Langsenkamp
d0e493ac92 Updated ScriptTemplates 2020-01-31 21:25:38 -05:00
FirstGearGames
dc0e47269c
Updated video, updated video link. (#1461) 2020-01-29 15:56:22 -05:00
Chris Langsenkamp
d8d1f48fe2 Updated NetworkDiscovery doc 2020-01-29 13:23:12 -05:00
Chris Langsenkamp
a52d58a18b Update RemoteActions doc 2020-01-29 12:34:20 -05:00
Paul Pacheco
e75b45f888
feat: LAN Network discovery (#1453)
* Fix typo

* Updated Changelog

* first commit

* Add example for discovery

* NetworkDiscovery component should be added

* fixed UI

* Fix some warnings

* refactor: network discovery reimplemented

* Remove unused GUIstyle

* Fix namespaces

* Just send to the broadcast address

* Fix indentation

* Log errors in ClientListen

* Code formatting cleanup, HelpURL's fixed, comments revised. (#38)

* Transport can now provide server uri

* work with any transport by passing uri

* Move discovery initialization to start

* feat: Discovery can now be easily customized per game

* Use generics to simplify api

* Renamed ServerInfo -> ServerResponse

* Rename method

* Moved up one folder

* Move ServerId to NetworkDiscovery

* tests now reference Mirror.Discovery

* Cleaned up blank space

* Disable GUID apparently fixes it

* Use UnityEvents for ease of use

* Remove noisy log

* remove blank spaces

* Process request receives the client endpoint

* use consistent name for parameters

* Remove white space

* Keep it minimalistic,  we don't need age or totalPlayers

* Comment non obvious property

* Don't break transports

* Documentation and image

* Code formatting

* removed privates

* Added Range attribute

* Rename ActiveDiscoverySecondInterval

* Revised NetworkDiscovery doc

* Swapped field order (Cosmetics)

* Added ScriptTemplate

* Update ProjectSettings/ProjectVersion.txt

* Updated ScriptTemplate

* Updated xml comment and ScriptTemplate

* Updated ScriptTemplate

* Improve xmldocs

* Improve xmldocs

* Remove leftover comment

* Renamed event

* Moved discovery inside components

* Keep parameter names consistent

* Provide a guide for network discovery

* XML Comments and ScriptTemplate

* Moved Credits

* fixed template

* Removed comment

* removed comment

* xml comments and template

* fixed method name

* fixed method and template

* removed semicolon

* fixed template

* fixed method and template

* fixed template

* fixed template

* Fix copypasta error

* Show error if no url is available

Network Discovery now shows an error if the transport does not support
providing Url

* Grammar fix

* Extended Template

* fixed template

* Added guide link to template

* New image

* Update NetworkDiscovery.md

* Updated Guid Doc and Template

* fixed bullets

* Remove unnecessary using

* Make it like Mirror's

* Update ScriptTemplates Image & Zip

* Removed from Deprecations

* Updated ChangeLog

* Updated ChangeLog

* Update NetworkDiscovery.md

Remove last line...this was copied to the paragraph above the code block

Co-authored-by: MrGadget <chris@clevertech.net>
2020-01-29 09:56:29 +01:00
Chris Langsenkamp
b003804ee9 Updated ChangeLog 2020-01-28 17:51:59 -05:00
Chris Langsenkamp
bfaef963e1 Updated ChangeLog 2020-01-28 17:51:14 -05:00
Chris Langsenkamp
cad02a2b1d Added note to SyncVarHooks doc 2020-01-28 02:48:21 -05:00
Chris Langsenkamp
6dd0f3590c Added Fallback to left nav 2020-01-27 14:56:30 -05:00
MrGadget
a7efb13e29 feat: Mirror Icon for all components (#1452)
* Apply Icon

* Assigned Icons

* Assigned Icons

* Updated ChangeLog
2020-01-27 18:00:27 +01:00
Chris Langsenkamp
5ffa4f0f2c Updated ChangeLog & DataTypes 2020-01-26 18:16:08 -05:00
Chris Langsenkamp
1946dd7491 Updated ChangeLog 2020-01-25 15:53:28 -05:00
MrGadget
71c0d3b2ee
feat: Network Scene Checker Component (#1271)
* Create Network Scene Checker Component

* Move objects to subscene in client

* Remove OnStartClient

* Rewritten with static dictionary

* Updated doc

* renamed image

* Replaced image

* fixed image name

* Changed to short-circuit return in Update

* Changed to using string for key since additive scenes may be unloaded

* Added null check

* Removed commented line

* Update Assets/Mirror/Components/NetworkSceneChecker.cs

Co-Authored-By: vis2k <info@noobtuts.com>

* Moved initializer to declaration

* Removed [Scene, SerializeField]

Co-authored-by: vis2k <info@noobtuts.com>
2020-01-25 15:48:47 -05:00
Chris Langsenkamp
16b4818f9e Updated ChangeLog 2020-01-25 04:25:46 -05:00
Chris Langsenkamp
f2f573d24c Updated ChangeLog 2020-01-23 14:44:22 -05:00
Chris Langsenkamp
be29857237 Updated ChangeLog 2020-01-23 14:38:46 -05:00