Modding:Network API: Difference between revisions

From Vintage Story Wiki
Line 32: Line 32:
== ProtoContracts ==
== ProtoContracts ==


VintageStory uses the https://github.com/protobuf-net/protobuf-net Protobuf-net] library to serialize classes declared with the ProtoContract attribute. ProtoBuf is beyond the scope of this tutorial, but you can read more about this powerful library [https://developers.google.com/protocol-buffers/docs/csharptutorial here].
VintageStory uses the [https://github.com/protobuf-net/protobuf-net Protobuf-net] library to serialize classes declared with the ProtoContract attribute. ProtoBuf is beyond the scope of this tutorial, but you can read more about this powerful library [https://developers.google.com/protocol-buffers/docs/csharptutorial here].


Inside our namespace block, let's create our ProtoContract classes:
Inside our namespace block, let's create our ProtoContract classes:
Confirmedusers, Bureaucrats, editor, Administrators
1,778

edits