Commit Graph

442 Commits

Author SHA1 Message Date
Paul Pacheco
31b07ae02f
breaking: no need to override Serialize/Deserialize in messages (#2317)
* breaking: no need to override Serialize/Deserialize in messages

Messages no longer serilize themselves.  This has been decoupled.  Serializing a message is now done
via readers and writers, which can be either generated or user provided.

This lifts some restrictions,
* you no longer need to have a default constructor in messages
* Messages types can be recursive
* struct Messages don't need to provide an empty Serialize and Deserialize method

Before:
```cs
public struct ReadyMessage : IMessageBase
{
    public void Deserialize(NetworkReader reader) { }

    public void Serialize(NetworkWriter writer) { }
}
```

After:
```cs
public struct ReadyMessage : IMessageBase
{
}
```

BREAKING CHANGE: Messages must be public
BREAKING CHANGE: Use custom reader and writer instead of Serialize/Deserialize methods

* Remove unused method

* remove unused methods

* remove unused methods

* make all messages struct

* Fix test code generator

* Get rid of MessageBase

* Rename IMessageBase -> NetworkMessage

* add MessageBase as obsolete

* Use a default request

* Empty file to make asset store happy

* Apply suggestions from code review

Co-authored-by: James Frowen <jamesfrowendev@gmail.com>

Co-authored-by: James Frowen <jamesfrowendev@gmail.com>
2020-10-06 09:31:02 +02:00
Paul Pacheco
80e27627f7
jagged arrays are fine 2020-10-05 16:26:19 -05:00
Paul Pacheco
90834d476b Document how to use new synclists 2020-10-02 13:56:20 -05:00
Morten Nørgaard
49c2f1bc5c
Update Profiler.md (#2304)
Added missing info on how to download the profiler tool via Discord.
2020-10-02 09:10:05 +02:00
James Frowen
16c919eae9
Update index.md 2020-10-01 17:03:15 +01:00
James Frowen
b82f4a1f34
Update NetworkRigidbody.md 2020-09-27 11:44:46 +01:00
Tikadze
22e2f97bd3
Update NetworkPingDisplay.md (#2278) 2020-09-27 11:42:41 +01:00
Tikadze
ed0433d6bc
Update NetworkManager.md (#2277) 2020-09-27 11:42:32 +01:00
Tikadze
c3f8e37cdd
Update NetworkManager.md (#2274) 2020-09-26 17:10:44 +01:00
Tikadze
3b32556a53
Update NetworkManager.md (#2273) 2020-09-26 17:10:31 +01:00
James Frowen
f953038767
Update index.md 2020-09-26 11:39:37 +01:00
James Frowen
e2bcb921ae
Update Authority.md
Trying to make page more clear and concise
2020-09-24 14:30:06 +01:00
James Frowen
783c6d2174
Update index.md
fixing links at top
2020-09-21 12:27:54 +01:00
Patrik Daňo
8286062d9d
Fix the logo position (#2265) 2020-09-19 20:12:09 +02:00
vis2k
c776b88e69 docs: background updated 2020-09-19 11:09:00 +02:00
vis2k
d9cb416501 docs: logo size fixed 2020-09-19 11:02:17 +02:00
vis2k
e569754962 docs: favicon updated 2020-09-19 10:16:15 +02:00
vis2k
112408e0eb docs: logo updated 2020-09-19 10:08:14 +02:00
James Frowen
13be048f81
Update toc.yml
removing ? from toc
2020-09-17 23:59:28 +01:00
James Frowen
fd80ef734b
Update TCPvsUDP.md 2020-09-17 23:38:25 +01:00
James Frowen
a03df2b8d5
Update index.md
* adding list
* adding node at bottom on how to submit
2020-09-17 23:18:09 +01:00
James Frowen
1370085f2e
Adding user guide mirror quick start guide (#2239)
* adding Mirror Quick Start Guide

* proof read
2020-09-17 22:42:43 +01:00
James Frowen
b1429df53a
Update toc.yml 2020-09-17 16:15:51 +01:00
James Frowen
7e7b1405ec
Update toc.yml 2020-09-17 16:13:35 +01:00
James Frowen
71dd5835ad
Update index.md
making links include Network
2020-09-17 00:29:55 +01:00
James Frowen
514a61d8d3
Docs tcp vs udp (#2257)
* renaming page

* changing start and end blocks

* updating blocks on tcp and udp

* moving lines above features

* moving links to header
2020-09-17 00:28:40 +01:00
James Frowen
b86a611674
Restructure docs (#2249)
* moving all guides to Articles folder

* updating toc for root and articles

* fixing toc

* css on side toc

* fixing links on index
2020-09-16 22:27:05 +01:00
James Frowen
8b9178faa8
Update main.css
using inherit so color is only in 1 place
2020-09-15 12:14:08 +01:00
James Frowen
4b5b9d9181
Update toc.yml 2020-09-15 12:05:11 +01:00
James Frowen
1025d6a5ef
Update main.css
autoformatting
removing duplicate .sidefilter  block
2020-09-15 11:56:22 +01:00
James Frowen
8461428b13
moving favicon to templates (#2253) 2020-09-15 11:52:51 +01:00
James Frowen
feca6417de
remoivng sub folder from templates (#2252) 2020-09-15 11:52:43 +01:00
James Frowen
f1a028f09c
renaming user guides to Community guides (#2251) 2020-09-15 11:47:03 +01:00
James Frowen
34eb9e5c68
updating docfx.json (#2238) 2020-09-15 11:44:08 +01:00
James Frowen
5a95ae6fe3
Update FAQ.md 2020-09-13 16:52:33 +01:00
James Frowen
6411013253
Update FAQ.md 2020-09-13 13:57:34 +01:00
James Frowen
6186aeb9d9
Update Resources.md 2020-09-13 12:28:55 +01:00
James Frowen
f302e2e8bf
Update BestPractices.md 2020-09-13 12:28:09 +01:00
James Frowen
d147bbbb38
docs: adding new pages (#2237) 2020-09-12 23:19:42 +01:00
Trentish
63c7fd6214
Typo on NetworkBehaviourCallbacks.md (#2235) 2020-09-12 16:45:10 +02:00
vis2k
9f53382bdd doc style update to black 2020-09-09 12:16:03 +02:00
James Frowen
2d73dadd72
docs: fixing v16.9.0 release date 2020-09-05 20:42:54 +01:00
James Frowen
bfa482fde7
Adding Network Lerp Rigidbody docs and change log (#2226)
* adding NetworkLerpRigidbody to change log

* adding docs for  Network Lerp Rigidbody
2020-09-05 13:09:06 +01:00
James Frowen
2db0b4dc0d
Updating change log for july and september (#2224)
* changes for version 16.9.0

* changes for version 17.3.0

* adding syncevent
2020-09-05 12:38:31 +01:00
James Frowen
eac69ab5f6
docs: sync event obsolete (#2216)
* adding note to guides about removed SyncEvent

* updating Obsolete

making Obsolete error whe used
updating text to say it has been removed
linking to issue

* adding Obsolete note to other references to SyncEvent
2020-09-04 16:29:46 +01:00
James Frowen
f57b894e35
Update toc.yml 2020-09-03 11:38:33 +01:00
James Frowen
ba2cd8629b
docs: adding docs for google cloud server (#2211)
* adding docs for google cloud server

* fixing image paths

* removing todo with bold

* fixing sub list

* fixing format

* rewording log file

* fixing quote

* fixing list

* adding newline
2020-09-03 08:48:38 +02:00
James Frowen
0d6e867978
docs: NetworkManager callbacks (#2207)
* removing mention of start

start happens before server/host/client starts

* updating order for stophost
2020-08-31 00:16:59 +01:00
James Frowen
05b4457e61
docs: network behaviour callbacks (#2206)
* renaming file

* updating callbacks and call order
2020-08-30 23:57:30 +01:00
James Frowen
2f4bcdf64d
Update sync/index.md 2020-08-30 23:44:57 +01:00