예제 #1
0
        public void FromStreamEx(Stream s, PmxElementFormat f = null)
        {
            Target    = PmxStreamHelper.ReadElement_Int32(s, f.BoneSize);
            LoopCount = PmxStreamHelper.ReadElement_Int32(s);
            Angle     = PmxStreamHelper.ReadElement_Float(s);
            int num = PmxStreamHelper.ReadElement_Int32(s);

            LinkList.Clear();
            LinkList.Capacity = num;
            for (int i = 0; i < num; i++)
            {
                IKLink iKLink = new IKLink();
                iKLink.FromStreamEx(s, f);
                LinkList.Add(iKLink);
            }
        }