public static void CL_DATA_REQUEST_PARTS(BaseClient client, PacketIn packet) { Client cclient = client as Client; var offset = packet.GetInt64(); //offset into file var size = packet.GetInt32(); //size from offset var sequence = packet.GetInt32(); //request sequence, sent back to client with reply cclient.OnFilePartRequest(offset, size, sequence); }
public static void CL_REQUEST_ASSET(BaseClient client, PacketIn packet) { Client cclient = client as Client; var archive = (Archive)packet.GetInt32(); var hash = (ulong)packet.GetInt64(); /*if (archive == Archive.ADDON) * cclient.ReqestAddonFile((uint)hash); * else*/if (archive == Archive.NONE) { cclient.RequestFile((uint)hash); } else { cclient.RequestAsset(archive, hash); } }