Commit Graph

87 Commits

Author SHA1 Message Date
MrGadget
4a59f563e0 Network Lobby Updates (#438)
* Fixed 1 link to be relative
Removed Wiki link from ReadMe

* Made ClientLoadedScene virtual
Updates to scene object references
Scene and vsync handling improvements
Minor cleanup.

* removed all use of vSyncCount

* Fixed bug with ReadyToBegin being incorrectly set
2019-02-24 20:31:13 +01:00
MrGadget
cda1240444 Update Application.md (#439)
Added OnStartAuthority and OnStopAuthority entries.
2019-02-24 10:40:16 +01:00
Paul Pacheco
a47a637ded
Document transport configuration changes
Part of #333 

Transports are components now.
Configure port and address in the transport components.
2019-02-21 10:03:43 -06:00
Paul Pacheco
ea24a256f7
Highlight that TCP is optional
Highlight that TCP is optional and edits for better grammar.
2019-02-21 09:48:08 -06:00
Chris Langsenkamp
7e7683766f Network Lobby Manager & Lobby Player (#356)
* Initial Commit with Unity's Network Lobby Components

* Lobby Components WIP

* Massive simplifications and structural changes to NetworkLobbyManager and NetworkLobbyPlayer

* Replaced more default messages with Command structure resulting in further simplification and less LOC

* Completed removal of messages

* Code Formatting and GUI Layout

* Fixed bugs and finished Remove feature in UI

* Added Network Lobby Manager Doc

* Network Lobby Docs

* Network Lobby Player Doc

* Updated doc and image about Offline Scene

* changed to PNG

* Added Lobby components to navigation

* Conformed to naming convention
Removed some leftover cruft
Removed maxPlayers (redundant to maxConnections)
Trapped and killed null ref in OnServerDisconnect

* Fixed mistake in OnServerDisconnect

* Fix Active Scene check

* Alow clean switch to Offline scene

* Add Help URL attributes to components

* Added Help URL Attributes

* Fixed OnGUI logic error.

* Added Example and README

* Fixed Disconnect handler

* Updated Docs

* Added Header for Inspector

* Finished Lobby Example Minigame

* Minor cleanup

* Set targetFramerates

* Code Cleanup
Changed to extended Lobby Manager for player Indexes & colors

* Minor changes to align with Mirror's NetworkManager

* Fixed logic error

* SyncVar Hook Workaround
Random Start Positions

* Revert making CallOnClientEnterLobby public

* Added documentation to the extension

* Minor code rearrangement

* Made OnGUI virtual so it can be overridden.
Added AllPlayersReady bool for convenience to extenders
Start Game enhancement to example.

* added comments

* Corrected namespaces and usings

* Reworked DontDestroyOnLoad
LobbyPlayer: Moved code from OnStartClient to Start
Added LobbyPlayerExt to Lobby Example
Code cleanup, added regions
Fixed Start Game button bug

* Final push of Lobby example to make sure it's complete.

* Improved Lobby Example

* Code cleanup

* Added ground texture
Set player camera angle
Adjusted lighting angle

* Updated ReadMe
Cleaned up privates
Fixed example to use SetParent
Changed to 5 max connections in example

* Prefab name fixes due to Mirror master's changes
Changed camera handling and GamePlayer Prefab
Two more SetParent fixes
Demoted two warnings to information
Added more comments to example scripts

* Revisions based on Vis2K review...more to come.

* Added f's where assigning literals to floats

* Removed manual calls to SyncVar Hooks because the bug is now fixed.

* Changed to GUILayout

* wrapped in namespace

* Changed to GUILayout

* All changes per peer review

* Renamed folder to Lobby.

* Fix due to change in Mirror 1691

* Renamed Scenes
Added LobbyScene property to OfflineGUI script.
2019-02-20 16:58:50 +01:00
Lymdun
9968db8d71 Update Migration.md (#419) 2019-02-17 16:51:17 -06:00
Chris Langsenkamp
3912a5a7b1 Update Migration.md (#406)
Cross checked with the one in the project root and updated this document accordingly so the other can be removed.
2019-02-14 10:24:07 +01:00
Chris Langsenkamp
b057b24fbc Update Migration.md (#401)
Added `cs` and code block formatting
2019-02-12 10:09:18 +01:00
Chris Langsenkamp
44c9c0a672 Update Attributes.md (#398)
Removed NetworkHash128 and NetworkInstanceId from the types list.
2019-02-10 10:57:26 -06:00
Chris Langsenkamp
04e54e17ff Update SyncLists.md (#397)
Cleaned up type list and indentations / formatting
Added comment about using OnStartClient vs Start
2019-02-10 10:57:07 -06:00
Chris Langsenkamp
bdc5ef01e8 Update SpawnObjectCustom.md (#396)
Replaced `NetworkHash128` with `System.Guid`
Added `cs` to code blocks
2019-02-10 10:56:45 -06:00
Chris Langsenkamp
38dc3895e3 Update RemoteActions.md (#395)
Removed NetworkHash128 and NetworkInstanceId from the list of allowed arguments
Added `cs` to code samples.
2019-02-10 10:56:18 -06:00
Chris Langsenkamp
a2e0651d7e Update StateSync.md (#394)
Fixed title capitalization and changed example to OnStartClient instead of Start
2019-02-10 08:44:45 -06:00
Jason
8756f28eac Callback functionality was incorrectly represented (#393)
Callback functionality is achieved through event handling. I've updated the documentation here to better represent a generic SyncList as well as a custom data type.
2019-02-10 08:27:33 -06:00
Chris Langsenkamp
d1626f7842 Add a virtual method that fires on the client right before scene change so devs can implement client-side work / prep / cleanup / visuals / etc. based on what scene is about to be loaded. (#383)
Documentation updates included.
2019-02-07 13:37:54 +01:00
Jason
38033f0a11 PlayerControllers deprecated (#378)
* PlayerControllers deprecated

Please see commit 1e61aaa05a

PlayerControllers property was deprecated.

* Update NetworkConnection.md

Please review the proposed change... I'm not sure this will suffice documentation standards as I'm still new to the project.
2019-02-06 14:34:30 -06:00
Jason
81430c8cdc Dictionary 'objects' is no longer present in NetworkServer class
Please see commit d979a45870

The objects property has been deprecated and is handled by `NetworkIdentity.spawned` dictionary at this time.
2019-02-06 11:18:46 -06:00
Chris Langsenkamp
bc857796f5 Update Attributes.md (#363)
Fixes #335 along with the content added to https://github.com/vis2k/Mirror/blob/master/docs/Concepts/Communications/RemoteActions.md where TargetRpc is fully described with a proper example.

Also filled in the other descriptions.
2019-01-30 20:08:47 -06:00
Chris Langsenkamp
bc25f7c587 Update Migration.md (#364)
Added links and note about restarting Unity.  This partially addresses #333 but more work is needed.
2019-01-30 20:08:01 -06:00
Chris Langsenkamp
148aaeb6c5 Update RemoteActions.md (#362)
Fixes #339
2019-01-30 19:31:56 -06:00
Chris Langsenkamp
58aff49585 Update Deprecations (#361)
Fixes for #341
2019-01-30 19:20:34 -06:00
Chris Langsenkamp
a5b2b280d7 Update to OnServerRemovePlayer (#355) 2019-01-28 21:01:07 +01:00
uwee
ec8feea23d Remove mention of HLAPI multiple players (#352)
this is not supported by Mirror
2019-01-28 11:55:12 -06:00
Jason
ee780dc059 Update ClientsServers.md (#354)
NetworkClient.Connect() only supports a single argument - string serverIp. This documentation should be updated to reflect that difference. Please see ticket https://github.com/vis2k/Mirror/issues/341
2019-01-28 18:13:34 +01:00
uwee
f7cad9d0b3 Update Insight.md (#353) 2019-01-27 22:17:38 -06:00
uwee
d168903a3a Method parameters were changed in Mirror (#351)
Updated to match current Mirror
2019-01-27 20:11:11 -06:00
Chris Langsenkamp
70f52160a7 Added OnStartLocalPlayer Description (#336) 2019-01-22 18:13:44 +01:00
Chris Langsenkamp
27fd9b3ada Change Contributing Link 2019-01-21 21:34:54 -06:00
Chris Langsenkamp
e99a1be951 Fixed case of SyncListSTRUCT 2019-01-21 16:35:11 -06:00
Chris Langsenkamp
44902ac49e Remove navigation to Contributions
Part of removing the redundant Contributions page in docs - no point in having two of them.
2019-01-19 14:57:38 -06:00
Chris Langsenkamp
786a04880a Delete Contributions.md
Removing the redundant Contributions page in docs - no point in having two of them.
2019-01-19 14:57:23 -06:00
Chris Langsenkamp
1a44f6ed38 Added page content 2019-01-11 22:58:26 -06:00
Chris Langsenkamp
1259ef9396 Added link to Deprecations page 2019-01-11 16:28:18 -06:00
Chris Langsenkamp
f59aad7e53 Added missing links 2019-01-08 22:49:32 -06:00
Robin Rolf
ae717810c0 Corrected doc for OnClientConnect
It used to mention it being called on the server, which is false
2019-01-08 16:49:07 -06:00
Chris Langsenkamp
eaa506fb26 Fixed formatting 2019-01-07 12:45:28 -06:00
Chris Langsenkamp
847759e055 Rename SyncVarHook to SyncVarHook.md 2019-01-07 12:40:30 -06:00
Chris Langsenkamp
cded1c41f8 Added entry for Insight 2019-01-07 11:11:26 -06:00
Chris Langsenkamp
bbaaffdae2 Create page for Insight 2019-01-07 11:11:06 -06:00
Chris Langsenkamp
e0fd799100 added cs to code markdown 2019-01-07 11:10:41 -06:00
Chris Langsenkamp
d7e3f79800 Added link to SyncVarHook 2019-01-07 11:10:19 -06:00
Chris Langsenkamp
f063f40544 Added link for Insight 2019-01-07 11:10:05 -06:00
Chris Langsenkamp
a4783094bd Create SyncVar Hook page 2019-01-07 11:09:35 -06:00
Chris Langsenkamp
4d837542e4 Added Description Content 2019-01-06 21:48:05 -06:00
Chris Langsenkamp
c5a949eec1 Added descriptions to transports 2019-01-06 21:47:16 -06:00
Paul Pacheco
01f859c34d localConnections is no more 2019-01-06 09:52:17 -06:00
Paul Pacheco
07b73dea26
Fix documentation validation
site validation should work again
2019-01-01 16:56:28 -06:00
Kosio
b618fb017c Fill Server events 2018-12-31 19:31:35 -06:00
Kosio
e0902361b7 Fill Client events based on Unity's HLAPI documentation 2018-12-31 19:31:35 -06:00
Kosio
2a2194aed8 Fill Application events (with small changes from Unity's HLAPI documentation) 2018-12-31 19:31:35 -06:00