Commit Graph

461 Commits

Author SHA1 Message Date
James Frowen
4cf77ca7c7
sync vars now work with overriden OnSerialize (#1985)
Co-authored-by: MrGadget <chris@clevertech.net>
2020-06-11 12:27:42 -04:00
James Frowen
7056d5eb9e
hooks are called on initialState too (#1986) 2020-06-11 12:24:52 -04:00
James Frowen
784b626dca
docs: replacing paragraph on return with is dirty (#1987)
* replacing paragraph on return with is dirty

the return value is not currently used in mirror
OnSerialize is currently only called when IsDrity is true

* Update doc/Guides/Sync/index.md

Co-authored-by: MrGadget <chris@clevertech.net>
2020-06-11 12:24:05 -04:00
James Frowen
acbb0db6f3
updating example and adding comments (#1984)
- SyncVars is generated inside SerializeSyncVars now
2020-06-11 12:22:50 -04:00
James Frowen
7e93030849
feat: adding script that displays ping (#1975)
* adding script that displays ping

* fixing style

* adding mirror icon

* Update Assets/Mirror/Components/NetworkPingDisplay.cs

Co-authored-by: MrGadget <chris@clevertech.net>

* adding DisallowMultipleComponent

* adding docs on NetworkPingDisplay

Co-authored-by: MrGadget <chris@clevertech.net>
2020-06-10 14:31:13 +01:00
Chris Langsenkamp
df76cb6eb4 doc: Updated DataTypes 2020-06-09 11:16:27 -04:00
FirstGearGames
a4a5888572
Video link removed. Path changing soon. (#1980) 2020-06-09 10:47:55 -04:00
FirstGearGames
96fceb1931
Removed dead link to video. (#1979) 2020-06-09 10:47:37 -04:00
Chris Langsenkamp
fdc65ebe29 doc: Updated RemoteActions 2020-06-09 10:46:54 -04:00
Chris Langsenkamp
2c9030333c doc: Updated DataTypes 2020-06-09 10:06:02 -04:00
Chris Langsenkamp
e73267f41b doc: Updated ChangeLog 2020-06-09 09:27:53 -04:00
Chris Langsenkamp
797c693fe8 doc: Updated Deprecations 2020-06-09 09:27:33 -04:00
Chris Langsenkamp
e601cb99ff doc: Updated Migration guide example 2020-06-04 08:32:00 -04:00
FirstGearGames
27ffb4d946
Update NetworkBehavior.md (#1956) 2020-06-03 10:29:11 -04:00
FirstGearGames
09e01fa818
Removed YouTube link. Links are changing. (#1957) 2020-06-03 10:28:52 -04:00
FirstGearGames
6f6c8b9d7e
Removed YouTube link. Links are changing. (#1958) 2020-06-03 10:28:27 -04:00
FirstGearGames
5c0cc561b0
Removed YouTube link. Link is changing soon. (#1959) 2020-06-03 10:28:06 -04:00
FirstGearGames
f83f87fc12
Removed YouTube link. Link is changing soon. (#1960) 2020-06-03 10:27:50 -04:00
FirstGearGames
95baa53b4f
Removed YouTube link. Link is changing soon. (#1961) 2020-06-03 10:27:35 -04:00
FirstGearGames
ab21af4db1
Removed YouTube link. Link is changing soon. (#1962) 2020-06-03 10:27:21 -04:00
Chris Langsenkamp
bc9659a148 doc: Updated ChangeLog 2020-06-02 13:09:18 -04:00
Chris Langsenkamp
a389a74175 doc: Updated docs for Command ignoreAuthority option 2020-06-02 11:09:15 -04:00
Chris Langsenkamp
a1c8338485 doc: Updated ChangeLog 2020-06-02 11:08:28 -04:00
James Frowen
9ae7fa2a8c
feat: adding OnRoomServerPlayersNotReady to NetworkRoomManager that is called when player ready changes and atleast 1 player is not ready (#1921)
* adding virtual function for Players not ready

* moving function calls to property

* making if check easier to read

* setting field

* making field private

* removed blank line

* Added override to template

* doc: Updated ChangeLog

Co-authored-by: Chris Langsenkamp <chris@clevertech.net>
2020-05-27 15:42:18 -04:00
Chris Langsenkamp
3d04f97c8d doc: Updated ChangeLog 2020-05-27 12:24:06 -04:00
Chris Langsenkamp
cfea4d3ac9 doc: Updated ChangeLog 2020-05-27 12:00:11 -04:00
Chris Langsenkamp
efdd86e82d Removed Discord Transport 2020-05-23 03:17:19 -04:00
Chris Langsenkamp
026f24d453 doc: Updated ChangeLog 2020-05-21 15:44:34 -04:00
Chris Langsenkamp
1ecc329daf doc: Updated ChangeLog 2020-05-21 15:10:01 -04:00
Chris Langsenkamp
df083bfd24 doc: Updated ChangeLog 2020-05-21 14:52:47 -04:00
Chris Langsenkamp
6a981534f4 doc: Updated ChangeLog 2020-05-16 01:47:25 -04:00
Chris Langsenkamp
a245e37a28 doc: Updated LiteNetLib4Mirror Transport doc 2020-05-12 13:00:10 -04:00
Chris Langsenkamp
5726d3b84a doc: Updated LiteNetLib4Mirror Transport 2020-05-12 10:40:36 -04:00
Chris Langsenkamp
ea2dc7e0a4 doc: Updated LiteNetLib4Mirror Transport doc 2020-05-12 10:37:51 -04:00
Chris Langsenkamp
179a08b70d doc: Updated ChangeLog 2020-05-11 13:06:13 -04:00
James Frowen
2db3fdc19c
Improving docs 1 (#1878)
* Update NetworkBehaviour.md

* Update Attributes.md

* Update doc/Guides/NetworkBehaviour.md

Co-authored-by: MrGadget <chris@clevertech.net>

Co-authored-by: MrGadget <chris@clevertech.net>
2020-05-11 10:29:09 +02:00
Chris Langsenkamp
e00186ed3d doc: Updated NetworkLogSettings doc 2020-05-08 22:39:53 -04:00
Chris Langsenkamp
93a4198d21 doc: Updated Components TOC 2020-05-08 22:31:34 -04:00
James Frowen
fd4357cd26
feat: LogSettings that can be saved and included in a build (#1863)
* Moving code that draws the log levels to its own class

this allows other scripts to use the same code to draw the log levels

* adding LogSettings to store the log levels

* adding GUI method to create LogSettings

* Creating Editor for LogSettings that uses LogLevelsGUI

* adding helper to find Existing LogSettings

* Adding field to LogLevelWindow to use LogSettings

* Adding LogSettings to drawer and save on changed check

* fixing field default value of null so that c# compiler doesnt complain

* loading existing settings into LogFactory when the editor starts

* component to load log settings in a build

* changing namespace

* Moving logging scripts to subfolder

* NetworkLogSettings editor

Makes the component use the same gui as the Window and ScriptableObject

* Making NetworkLogSettings find existing settings on Reset

reset is called when component is added

* adding attributes

* adding docs

* adding icon

* doc.

* documentation and images

* fixing image extension

* Update Assets/Mirror/Runtime/Logging/EditorLogSettingsLoader.cs

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

Co-authored-by: vis2k <info@noobtuts.com>
2020-05-08 23:51:21 +01:00
MrGadget
65ef067cac
Update RemoteActions.md 2020-05-08 02:26:34 -04:00
Chris Langsenkamp
3fbce7ee39 doc: Fixed malformed sentence 2020-05-07 04:12:07 -04:00
Chris Langsenkamp
f77c576d5a doc: Updated ChangeLog 2020-05-07 03:40:03 -04:00
Chris Langsenkamp
96773b7245 doc: Updated index doc 2020-05-07 03:25:30 -04:00
Chris Langsenkamp
7a17790538 doc: Merged Discovery docs 2020-05-07 01:58:32 -04:00
Chris Langsenkamp
811c9d3e02 doc: Merged Authentication documents 2020-05-07 01:52:35 -04:00
Chris Langsenkamp
08390cb801 doc: fixed Components navigation 2020-05-06 19:20:08 -04:00
MrGadget
a508e8d37b
Update NetworkMatchChecker.md 2020-05-06 12:39:54 -04:00
Chris Langsenkamp
bde82c1205 doc: fixed typo in NetworkBehaviour Guide 2020-05-05 12:32:32 -04:00
Chris Langsenkamp
3e21aca8fc Updated ChangeLog for Release 2020-05-05 00:28:33 -04:00
Chris Langsenkamp
b74eaf4b7b Updated ChangeLog 2020-05-03 12:22:46 -04:00
Chris Langsenkamp
ff1c0a49c4 Updated Examples index.md 2020-05-03 12:14:48 -04:00
Chris Langsenkamp
7acff03764 Updated Basic Example doc 2020-05-03 12:14:22 -04:00
Chris Langsenkamp
c5f85a7113 Updated ChangeLog and Deprecations 2020-05-03 12:13:38 -04:00
Chris Langsenkamp
dde71d65ba Added doc for Multiple Additive Scenes Example 2020-05-03 12:13:09 -04:00
Chris Langsenkamp
2fc68d3e91 doc: Fixed ReplacePlayer example 2020-05-02 21:54:22 -04:00
Chris Langsenkamp
3363d4e859 doc: Updated Additive Scenes Example 2020-05-02 01:27:05 -04:00
Chris Langsenkamp
5653607183 doc: Updated TOC 2020-05-02 01:18:41 -04:00
Chris Langsenkamp
24c4446646 Additive Scenes Example doc 2020-05-01 05:14:26 -04:00
MrGadget
28093f9072
Update Deprecations.md 2020-04-29 16:11:42 -04:00
MrGadget
37cfdfb2e4
Update DataTypes.md 2020-04-28 00:37:39 -04:00
James Frowen
fea22f69df
fixing list (#1802) 2020-04-27 19:11:54 +02:00
Chris Langsenkamp
57ff0c4606 doc: Updated ChangeLog 2020-04-26 12:06:25 -04:00
Chris Langsenkamp
f855833c1c Updated Migration doc 2020-04-24 14:45:38 -04:00
Paul Pacheco
b284b324d9 docs: fix relative path to api 2020-04-24 09:17:06 -05:00
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