Mirror/doc
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
..
api docs: switch to docfx for documentation (#1026) 2019-08-24 10:20:33 -05:00
Articles breaking: no need to override Serialize/Deserialize in messages (#2317) 2020-10-06 09:31:02 +02:00
images docs:Use video tutorial image 2019-12-14 13:50:35 -06:00
Properties Fix issue doc.csproj conflicting with other assemblies 2019-08-24 15:04:40 -05:00
templates Fix the logo position (#2265) 2020-09-19 20:12:09 +02:00
.gitignore docs: switch to docfx for documentation (#1026) 2019-08-24 10:20:33 -05:00
doc.csproj adding cloud to api docs (#2038) 2020-06-26 01:00:08 +01:00
docfx.json docs: logo updated 2020-09-19 10:08:14 +02:00
filterConfig.yml docs: switch to docfx for documentation (#1026) 2019-08-24 10:20:33 -05:00
index.md Update index.md 2020-09-17 00:29:55 +01:00
logo.png docs: logo size fixed 2020-09-19 11:02:17 +02:00
toc.yml Restructure docs (#2249) 2020-09-16 22:27:05 +01:00