public void applyCompetitionKind(int selectedIndex, MemoryStream unzlib, CompetitionKind comp, ref BinaryWriter writer) { UInt32 Pos_ini = (uint)(selectedIndex * block); writer.BaseStream.Position = Pos_ini; byte Order = comp.getOrder(); byte Byte_imp = 0; byte UNK1 = comp.getUnk1(); byte UNK2 = comp.getUnk2(); byte UNK3 = comp.getUnk3(); byte Aux_byte = (byte)(UNK1 << 6); Byte_imp = (byte)(Aux_byte | Byte_imp); Aux_byte = (byte)(UNK2 << 3); Byte_imp = (byte)(Aux_byte | Byte_imp); Aux_byte = UNK3; Byte_imp = (byte)(Aux_byte | Byte_imp); writer.Write(Order); writer.Write(Byte_imp); }