示例#1
0
        public static BaseNPC Deserialize(Stream stream)
        {
            BaseNPC baseNPC = Pool.Get <BaseNPC>();

            BaseNPC.Deserialize(stream, baseNPC, false);
            return(baseNPC);
        }
示例#2
0
 public static BaseNPC Deserialize(byte[] buffer, BaseNPC instance, bool isDelta = false)
 {
     using (MemoryStream memoryStream = new MemoryStream(buffer))
     {
         BaseNPC.Deserialize(memoryStream, instance, isDelta);
     }
     return(instance);
 }
示例#3
0
        public static BaseNPC Deserialize(byte[] buffer)
        {
            BaseNPC baseNPC = Pool.Get <BaseNPC>();

            using (MemoryStream memoryStream = new MemoryStream(buffer))
            {
                BaseNPC.Deserialize(memoryStream, baseNPC, false);
            }
            return(baseNPC);
        }
示例#4
0
 public void FromProto(Stream stream, bool isDelta = false)
 {
     BaseNPC.Deserialize(stream, this, isDelta);
 }