コード例 #1
0
ファイル: AnimationFrame.cs プロジェクト: cydrith/ACE
        public static AnimationFrame Read(uint numParts, DatReader datReader)
        {
            AnimationFrame a = new AnimationFrame();

            for (uint i = 0; i < numParts; i++)
            {
                Position p = new Position();
                // Origin
                p.PositionX = datReader.ReadSingle();
                p.PositionY = datReader.ReadSingle();
                p.PositionZ = datReader.ReadSingle();
                p.RotationW = datReader.ReadSingle();
                p.RotationX = datReader.ReadSingle();
                p.RotationY = datReader.ReadSingle();
                p.RotationZ = datReader.ReadSingle();
                a.Locations.Add(p);
            }

            uint numHooks = datReader.ReadUInt32();

            for (uint i = 0; i < numHooks; i++)
            {
                a.Hooks.Add(AnimationHook.Read(datReader));
            }

            return(a);
        }
コード例 #2
0
        public static PhysicsScriptData Read(DatReader datReader)
        {
            PhysicsScriptData obj = new PhysicsScriptData();

            obj.StartTime = datReader.ReadDouble();
            obj.Hook      = AnimationHook.Read(datReader);

            return(obj);
        }