예제 #1
0
        public void SetAnimationClipEnd(string name, int end)
        {
            odfBANMSection anim = odf.FindClip(name, Parser) as odfBANMSection;

            if (anim != null)
            {
                anim.EndKeyframeIndex = end;
            }
        }
예제 #2
0
        public void SetAnimationClipStart(string name, int start)
        {
            odfBANMSection anim = odf.FindClip(name, Parser) as odfBANMSection;

            if (anim != null)
            {
                anim.StartKeyframeIndex = start;
            }
        }
예제 #3
0
        private bool loadBANM(BinaryReader reader, odfFileSection fileSec)
        {
            ObjectName     name        = new ObjectName(reader.ReadBytes(64));
            ObjectID       id          = new ObjectID(reader.ReadBytes(4));
            int            numTracks   = reader.ReadInt32();
            odfBANMSection banmSection = new odfBANMSection(id, numTracks);

            banmSection.Name = name;
            ParseTracks(reader, numTracks, banmSection);
            banmSection.AlwaysZeroName = new ObjectName(reader.ReadBytes(64));

            banmSection.Range.AlwaysZero252      = reader.ReadBytes(252);
            banmSection.Range.StartKeyframeIndex = reader.ReadSingle();
            banmSection.Range.EndKeyframeIndex   = reader.ReadSingle();
            banmSection.Range.AlwaysZero4        = reader.ReadBytes(4);

            fileSec.Section = banmSection;
            BANMList.Add(banmSection);
            return(true);
        }