Commit Graph

12 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
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
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
7e7b1405ec
Update toc.yml 2020-09-17 16:13:35 +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