Example #1
0
        private static void loadObject3D(
            Object3D @object,
            ref DataInputStream @in,
            ref List <Object3D> objects,
            ref List <Object3D> rootObjects)
        {
            int userID = Loader.readIntLE(ref @in);

            @object.setUserID(userID);
            int num1 = Loader.readIntLE(ref @in);

            for (int index = 0; index < num1; ++index)
            {
                AnimationTrack reference = (AnimationTrack)Loader.getReference(ref @in, ref objects, ref rootObjects);
                @object.addAnimationTrack(reference);
            }
            int num2 = Loader.readIntLE(ref @in);

            for (int index = 0; index < num2; ++index)
            {
                Loader.readIntLE(ref @in);
                sbyte[] b = new sbyte[Loader.readIntLE(ref @in)];
                @in.readFully(b);
            }
        }
Example #2
0
        protected virtual void duplicateTo(ref Object3D ret)
        {
            ret.setUserID(this.getUserID());
            int animationTrackCount = this.getAnimationTrackCount();

            for (int index = 0; index < animationTrackCount; ++index)
            {
                AnimationTrack animationTrack = this.getAnimationTrack(index);
                ret.addAnimationTrack(animationTrack);
            }
        }