public NetBitStream Serialize() { using(NetBitStream nbs = new NetBitStream()) { nbs.Write(_protocol); nbs.Write(_result); nbs.Write(Puid); nbs.Write(RspPuids.Count); foreach (var k in RspPuids) { nbs.Write(k); } nbs.Write(Shuttle); nbs.Write(a1); nbs.Write(a2); nbs.Write(a3); nbs.Write(a4); nbs.Write(a5); nbs.Write(a6); nbs.Write(a7); nbs.Write(d1); nbs.Write(d2); nbs.Write((short)eBaseDemo); BaseDemo.Serialize(nbs); nbs.WriteEnd(); return nbs; } }
public void Unserialize(byte[] buffer) { using(NetBitStream nbs = new NetBitStream()) { nbs.BeginRead(buffer); nbs.Read(out _protocol); nbs.Read(out _result); nbs.Read(out Puid); int count = nbs.ReadInt(); for (int k = 0; k < count; k++) { RspPuids.Add(nbs.ReadLong()); } nbs.Read(out Shuttle); nbs.Read(out a1); nbs.Read(out a2); nbs.Read(out a3); nbs.Read(out a4); nbs.Read(out a5); nbs.Read(out a6); nbs.Read(out a7); nbs.Read(out d1); nbs.Read(out d2); if (true) { var etemp = nbs.ReadShort(); eBaseDemo = (EnumBaseDemo)etemp; } BaseDemo.Unserialize(nbs); } }
public void Unserialize(NetBitStream nbs) { nbs.Read(out a1); nbs.Read(out a2); nbs.Read(out a3); nbs.Read(out a4); nbs.Read(out a5); nbs.Read(out a6); nbs.Read(out a7); nbs.Read(out d1); nbs.Read(out d2); if (true) { var etemp = nbs.ReadShort(); BaseDemo = (EnumBaseDemo)etemp; } }
public void Serialize(NetBitStream nbs) { nbs.Write(a1); nbs.Write(a2); nbs.Write(a3); nbs.Write(a4); nbs.Write(a5); nbs.Write(a6); nbs.Write(a7); nbs.Write(d1); nbs.Write(d2); nbs.Write((short)BaseDemo); }
public void Unserialize(byte[] buffer) { using(NetBitStream nbs = new NetBitStream()) { nbs.BeginRead(buffer); nbs.Read(out _protocol); nbs.Read(out _result); nbs.Read(out Puid); int count = nbs.ReadInt(); for (int k = 0; k < count; k++) { RspPuids.Add(nbs.ReadLong()); } nbs.Read(out Shuttle); } }
public NetBitStream Serialize() { using(NetBitStream nbs = new NetBitStream()) { nbs.Write(_protocol); nbs.Write(_result); nbs.Write(Puid); nbs.Write(RspPuids.Count); foreach (var k in RspPuids) { nbs.Write(k); } nbs.Write(Shuttle); nbs.WriteEnd(); return nbs; } }
public void Unserialize(byte[] buffer) { using(NetBitStream nbs = new NetBitStream()) { nbs.BeginRead(buffer); nbs.Read(out _protocol); nbs.Read(out _result); nbs.Read(out Puid); int count = nbs.ReadInt(); for (int k = 0; k < count; k++) { RspPuids.Add(nbs.ReadLong()); } nbs.Read(out Shuttle); int var49 = nbs.ReadInt(); for (int k = 0; k < var49; k++) { var var50 = new CLS_PlayerXY(); var50.Unserialize(nbs);ListPlayerXY.Add(var50); } } }
public void Unserialize(NetBitStream nbs) { nbs.Read(out Uid); nbs.Read(out Left); nbs.Read(out Top); }
public void Serialize(NetBitStream nbs) { nbs.Write(Uid); nbs.Write(Left); nbs.Write(Top); }