Esempio n. 1
0
        public override string strval()
        {
            String str = "-=ZooForm=-\r\n";

            str += items.log() + Environment.NewLine;
            if (items.value() > 0)
            {
                str += zoodate.log() + Environment.NewLine + donorcnt.log() + Environment.NewLine;
                for (int i = 0; i < (int)donorcnt.value(); i++)
                {
                    str += "don" + i.ToString() + "=" + donors[i].log() + Environment.NewLine;
                }
                str += zoocnt.log() + Environment.NewLine;
                for (int i = 0; i < (int)zoocnt.value(); i++)
                {
                    str += "zoo" + i.ToString() + "=" + zoojobs[i].log() + Environment.NewLine;
                }
                str += strcount.log() + Environment.NewLine;
                for (int i = 0; i < strcount.value(); i++)
                {
                    str += "str" + i.ToString() + "=" + strings[i].value() + Environment.NewLine;
                }
            }
            return(str + "-=ZooForm_End=-");
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        public String log()
        {
            String str = " -=ArcWork=-\r\n " + date.log() + Environment.NewLine + count.log() + Environment.NewLine;

            for (int i = 0; i < count.value(); i++)
            {
                str += "work" + i.ToString() + "=" + works[i].log() + Environment.NewLine;
            }
            return(str + "-=ArcWork end=-");
        }
Esempio n. 4
0
 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);
     }
 }
Esempio n. 5
0
 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);
     }
 }
Esempio n. 6
0
        public String log()
        {
            String str = " -=Transfer=-\r\n ";

            str += String.Format("type={0:d} {1:s}\r\n ", TransferType, TrNames[TransferType]);
            str += Notes.log() + Environment.NewLine;
            str += When.log() + Environment.NewLine;
            str += Units.log() + Environment.NewLine;
            String msk = Masks[TransferType];

            for (int i = 0; i < msk.Length; i++)
            {
                IMFCommon obj = Getobj(msk[i], false);
                str += obj.log();
                if (msk[i] == 's')
                {
                    str += " " + SkinTypeNames[Skintype.value()];
                }
                str += Environment.NewLine;
            }
            str += "-=Transfer_end=-";
            return(str);
        }