public bool Parse(BinaryReader br, string id) { switch (id) { case "Num": int num = br.ReadInt32(); Keys = new MegaBezVector3Key[num]; Times = new float[num]; break; case "Keys": for (int i = 0; i < Keys.Length; i++) { Keys[i] = new MegaBezVector3Key(); Keys[i].val = MegaUtils.ReadP3(br); Keys[i].intan = MegaUtils.ReadP3(br); Keys[i].outtan = MegaUtils.ReadP3(br); Times[i] = br.ReadSingle(); } InitKeys(); break; } return(true); }