Modding:Network API: Difference between revisions

From Vintage Story Wiki
no edit summary
m (Tylermcwilliams moved page NetworkApiTest to Network API: title didn't fit)
No edit summary
Line 32: Line 32:
== ProtoContracts ==
== ProtoContracts ==


VintageStory uses the ProtoBuf 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] 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