Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using ProtoBuf.Meta;
- using DataModels;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- var model = TypeModel.Create();
- model.Add(typeof(EntityState), true);
- model.Add(typeof(EntityStateList), true);
- model.Add(typeof(MyVector3), true);
- model.Add(typeof(MyQuaternion), true);
- model.AllowParseableTypes = true;
- model.AutoAddMissingTypes = true;
- model.Compile("ModelSerializer", "ModelSerializer.dll");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement