Ejemplo n.º 1
0
 public FishData()
 {
     Body = new PartsData()
     {
         _id = -1, _pos = new Vector2(0, 0)
     };
     Eye = new PartsData()
     {
         _id = -1, _pos = new Vector2(0, 0)
     };
 }
Ejemplo n.º 2
0
            public static PartsData Read(BinaryReader br)
            {
                PartsData ret = new PartsData();

                ret.Id        = br.ReadUInt32();
                ret.PartCount = br.ReadUInt32();
                ret.Offset    = br.ReadUInt32();
                ret.Parts     = new PartData[ret.PartCount];
                for (int i = 0; i < ret.PartCount; i++)
                {
                    ret.Parts[i] = PartData.Read(br);
                }
                return(ret);
            }