Пример #1
0
 public void CopyTo(BaseNPC instance)
 {
     instance.flags = this.flags;
 }
Пример #2
0
 public byte[] ToProtoBytes()
 {
     return(BaseNPC.SerializeToBytes(this));
 }
Пример #3
0
 public virtual void WriteToStream(Stream stream)
 {
     BaseNPC.Serialize(stream, this);
 }
Пример #4
0
 public void ToProto(Stream stream)
 {
     BaseNPC.Serialize(stream, this);
 }
Пример #5
0
 public static void SerializeLengthDelimited(Stream stream, BaseNPC instance)
 {
     byte[] bytes = BaseNPC.SerializeToBytes(instance);
     ProtocolParser.WriteUInt32(stream, (uint)bytes.Length);
     stream.Write(bytes, 0, (int)bytes.Length);
 }
Пример #6
0
 public void ResetToPool()
 {
     BaseNPC.ResetToPool(this);
 }
Пример #7
0
 public virtual void ReadFromStream(Stream stream, int size, bool isDelta = false)
 {
     BaseNPC.DeserializeLength(stream, size, this, isDelta);
 }
Пример #8
0
 public void FromProto(Stream stream, bool isDelta = false)
 {
     BaseNPC.Deserialize(stream, this, isDelta);
 }