public void read(BinaryReader br, float ver) { child_count.read(br, ver); DBG.dbg2(child_count.log(), br); borns.read(br, ver); DBG.dbg2(borns.log(), br); ev_date.read(br, ver); DBG.dbg2(ev_date.log(), br); last_okrol.read(br, ver); DBG.dbg2(last_okrol.log(), br); ev_type.read(br, ver); DBG.dbg2(ev_type.log(), br); if (ver > 3.1) { lost_babies.read(br, ver); } DBG.dbg2(lost_babies.log(), br); if (ver > 5.1) { overall_babies.read(br, ver); } DBG.dbg2(overall_babies.log(), br); suckers.read(br, ver); DBG.dbg2(suckers.log(), br); fuckers_count.read(br, ver); DBG.dbg2(fuckers_count.log(), br); for (int i = 0; i < (int)fuckers_count.value(); i++) { fuckers.Add(new F****r(br, ver)); DBG.dbg2(fuckers[i].log(), br); } if (ver > 5.1) { worker.read(br, ver); DBG.dbg2(worker.log(), br); no_kuk.read(br, ver); DBG.dbg2(no_kuk.log(), br); no_lact.read(br, ver); DBG.dbg2(no_lact.log(), br); } }
public void Read(BinaryReader br, float ver) { sex.read(br, ver); DBG.dbg1(sex.log()); if (ver > 3) { bon.read(br, ver); } DBG.dbg1(bon.log()); for (int i = 0; i < proplist.Count; i++) { proplist[i].read(br, ver); DBG.dbg1(proplist[i].log()); } weightcnt = br.ReadUInt16(); DBG.dbg1("weight=" + weightcnt.ToString()); for (int i = 0; i < weightcnt; i++) { weights.Add(br.ReadUInt32()); DBG.dbg1("weight[" + i.ToString() + "]=" + weights[i].ToString()); } borndate.read(br, ver); DBG.dbg1(borndate.log()); gencnt = br.ReadUInt16(); for (int i = 0; i < gencnt; i++) { genesis.Add(br.ReadUInt16()); } if (sex.value() == 1) { lastfuck = new MFDate("lastfuck"); status = new MFByte("status"); lastfuck.read(br, ver); status.read(br, ver); } if (sex.value() == 2) { female = new RabFemale(br, ver, males, females); } }
public void read(BinaryReader br, float ver) { allobj.Add(Pervonest); allobj.Add(Kukunest); allobj.Add(Mothernest); allobj.Add(Heater); allobj.Add(Okrol); allobj.Add(Kuk); allobj.Add(Pravka1); allobj.Add(count_2); allobj.Add(count_3); allobj.Add(endkuku); allobj.Add(vacc); allobj.Add(vudvorenie); allobj.Add(countsuckers); allobj.Add(vyazkamother); allobj.Add(vyazkapervo); allobj.Add(rasselboys); allobj.Add(killfemales); allobj.Add(killbrides); allobj.Add(killboys); allobj.Add(max_age_diff); allobj.Add(automode); allobj.Add(rescopies); allobj.Add(tab_abbr); allobj.Add(double_sur); allobj.Add(heterosis); allobj.Add(inbreeding); allobj.Add(report_full_addr); allobj.Add(SOME_OPTION); allobj.Add(use_from); allobj.Add(use_till); allobj.Add(from); allobj.Add(till); allobj.Add(from_heater); allobj.Add(till_heater); allobj.Add(h_from_checked); allobj.Add(h_till_checked); allobj.Add(show_tier_types); allobj.Add(show_area_types); allobj.Add(sluchka_filter); allobj.Add(today); allobj.Add(otsad_boys_mother); allobj.Add(otsad_boys_pervo); allobj.Add(zoo_bits); allobj.Add(job_grouping); allobj.Add(name_show); allobj.Add(ignore_last_fuck); allobj.Add(partners_limit); allobj.Add(limit_value); allobj.Add(sec_ignore); allobj.Add(auto_kuk); allobj.Add(jurta_sync); allobj.Add(make_brides); allobj.Add(sell_mothers_with_babies); allobj.Add(imm_age_diff); allobj.Add(arctime); allobj.Add(lost_days); allobj.Add(use_feed_spec); allobj.Add(auto_arc); allobj.Add(no_kuk); allobj.Add(no_gen_mix); allobj.Add(holost_punish); allobj.Add(imm_heater); allobj.Add(rotation); allobj.Add(rot_speed); allobj.Add(no_jurta_kuk); allobj.Add(shed_scale); allobj.Add(show_gen_tree); allobj.Add(show_young_gen_tree); allobj.Add(gen_tree_width); allobj.Add(young_gen_tree_width); allobj.Add(show_numbers); allobj.Add(averfeed); for (int i = 0; i < allobj.Count; i++) { allobj[i].read(br, ver); DBG.dbg3(allobj[i].log()); } if (ver > 6.1) { number_before_name.read(br, ver); DBG.dbg3(number_before_name.log()); reserved = br.ReadBytes(99); DBG.dbg3(reserved.ToString()); } if (ver > 5.1) { next_svid.read(br, ver); DBG.dbg3(next_svid.log()); svid_remark_cnt.read(br, ver); DBG.dbg3(svid_remark_cnt.log()); for (int i = 0; i < svid_remark_cnt.value(); i++) { svid_remarks.Add(new MFString(br, ver)); DBG.dbg3("rem" + i.ToString() + "=" + svid_remarks[i].value()); } svid_head.read(br, ver); DBG.dbg3(svid_head.log()); svid_farm.read(br, ver); DBG.dbg3(svid_farm.log()); reserved2 = br.ReadBytes(100); for (int i = 0; i < 5; i++) { subscriber.Add(new SubscruberOrJob(br, ver, false)); } } jobcnt.read(br, ver); DBG.dbg3(jobcnt.log()); for (int i = 0; i < (int)jobcnt.value(); i++) { jobs.Add(new SubscruberOrJob(br, ver, true)); } }