public static CreateBuilding Deserialize(Stream stream)
        {
            CreateBuilding createBuilding = Pool.Get <CreateBuilding>();

            CreateBuilding.Deserialize(stream, createBuilding, false);
            return(createBuilding);
        }
 public static CreateBuilding Deserialize(byte[] buffer, CreateBuilding instance, bool isDelta = false)
 {
     using (MemoryStream memoryStream = new MemoryStream(buffer))
     {
         CreateBuilding.Deserialize(memoryStream, instance, isDelta);
     }
     return(instance);
 }
        public static CreateBuilding Deserialize(byte[] buffer)
        {
            CreateBuilding createBuilding = Pool.Get <CreateBuilding>();

            using (MemoryStream memoryStream = new MemoryStream(buffer))
            {
                CreateBuilding.Deserialize(memoryStream, createBuilding, false);
            }
            return(createBuilding);
        }
 public void FromProto(Stream stream, bool isDelta = false)
 {
     CreateBuilding.Deserialize(stream, this, isDelta);
 }