public void read(BinaryReader br, float ver) { items.read(br, ver); if (items.value() > 0) { zoodate.read(br, ver); donorcnt.read(br, ver); for (int i = 0; i < (int)donorcnt.value(); i++) { donors.Add(new Donor(br, ver)); } zoocnt.read(br, ver); for (int i = 0; i < (int)zoocnt.value(); i++) { zoojobs.Add(new ZooJob(br, ver)); } if (ver > 5.1) { strcount.read(br, ver); for (int i = 0; i < strcount.value(); i++) { strings.Add(new MFString(br, ver)); } } } }
public void read(BinaryReader br, float ver) { count.read(br, ver); for (int i = 0; i < (int)count.value(); i++) { Rabnames.Add(new RabName(br, ver)); } }
public void read(BinaryReader br, float ver) { count.read(br, ver); for (int i = 0; i < (int)count.value(); i++) { strings.Add(new MFString(br, ver)); } }
public String log() { String str = "-=Rabbit=-\r\n"; str += sex.log() + " (" + sexName[sex.value()] + ")\r\n"; str += bon.log() + Environment.NewLine; for (int i = 0; i < proplist.Count; i++) { str += proplist[i].log(); if (proplist[i] == namekey) { if (sex.value() == 1) { str += " " + males.Getname((ushort)namekey.value()); } if (sex.value() == 2) { str += " " + females.Getname((ushort)namekey.value()); } } if (proplist[i] == surkey) { str += " " + females.Getname((ushort)surkey.value()); } if (proplist[i] == pathkey) { str += " " + males.Getname((ushort)pathkey.value()); } str += Environment.NewLine; } str += "weights(" + weightcnt.ToString() + ")="; for (int i = 0; i < weightcnt; i++) { ushort weight = (ushort)(weights[i] & 0xFFFF); ushort dt = (ushort)((weights[i] >> 16) & 0xFFFF); DateTime sdt = (new DateTime(1899, 12, 30)).AddDays(dt); String hlp = String.Format("{0:X}({1:s}-{2:d})", weights[i], sdt.ToShortDateString(), weight); str += hlp + " "; } str += Environment.NewLine + borndate.log() + "\r\ngenesis(" + gencnt.ToString() + ")="; for (int i = 0; i < gencnt; i++) { str += genesis[i].ToString() + " "; } str += Environment.NewLine; if (sex.value() == 1) { str += lastfuck.log() + Environment.NewLine; str += status.log() + Environment.NewLine; } if (sex.value() == 2) { str += female.log() + Environment.NewLine; } str += "-=Rabbit_End=-"; return(str); }
public void read(BinaryReader br, float ver) { Lookat.read(br, ver); Max.read(br, ver); for (int i = 0; i < (int)Max.value(); i++) { Filters.Add(new Filter(br, ver)); } Combo.read(br, ver); }
public Donor(BinaryReader br, float ver) { unique.read(br, ver); acccnt.read(br, ver); for (int i = 0; i < (int)acccnt.value(); i++) { acc.Add(new Acceptor(br, ver)); } surplus.read(br, ver); immediate.read(br, ver); }
public void read(BinaryReader br, float ver) { Count.read(br, ver); for (int i = 0; i < (int)Count.value(); i++) { Minifarms.Add(new MiniFarm(br, ver)); if (Minifarms[i].ID > Maxfarm) { Maxfarm = Minifarms[i].ID; } } }
public void read(BinaryReader br, float ver) { count.read(br, ver); int cnt = (int)count.value(); for (int i = 0; i < (int)count.value(); i++) { if (mf != null) { mf.Setpb(i, cnt); } rabbits.Add(new Rabbit(br, ver, nmales, nfemales)); } }
public void read(BinaryReader br, float ver) { live.read(br, ver); if (live.value() != 0) { name_key = new MFUShort("name_key"); name_key.read(br, ver); } else { gecnt = new MFUShort("genesis_count"); genesis = new List <ushort>(); name = new MFString("name"); gecnt.read(br, ver); for (int i = 0; i < (int)gecnt.value(); i++) { genesis.Add(br.ReadUInt16()); } name.read(br, ver); } breed.read(br, ver); f***s.read(br, ver); children.read(br, ver); my_fuck_is_last.read(br, ver); }
public String log() { String str = "-=f****r=-\r\n" + live.log() + Environment.NewLine; if (live.value() != 0) { str += name_key.log() + Environment.NewLine; } else { str += "genesis(" + gecnt.value().ToString() + ")="; for (int i = 0; i < (int)gecnt.value(); i++) { str += String.Format("{0:d} ", genesis[i]); } str += Environment.NewLine + name.log() + Environment.NewLine; } str += breed.log() + Environment.NewLine + f***s.log() + Environment.NewLine + children.log() + Environment.NewLine + my_fuck_is_last.log() + Environment.NewLine; return(str + "-=fucker_end=-"); }
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); } }