Example #1
0
        public ClipMuscleConstant(IAssetsFile assetsFile)
        {
            if (assetsFile == null)
            {
                throw new ArgumentNullException(nameof(assetsFile));
            }

            m_assetsFile    = assetsFile;
            DeltaPose       = new HumanPose(assetsFile);
            StartX          = new XForm(assetsFile);
            LeftFootStartX  = new XForm(assetsFile);
            RightFootStartX = new XForm(assetsFile);
            Clip            = new Clip(assetsFile);

            if (IsReadStopX)
            {
                StopX = new XForm(assetsFile);
            }
            if (IsReadMotion)
            {
                MotionStartX = new XForm(assetsFile);
                MotionStopX  = new XForm(assetsFile);
            }
            if (IsVector3)
            {
                AverageSpeed3 = new Vector3f();
            }
            else
            {
                AverageSpeed4 = new Vector4f();
            }
        }
Example #2
0
        private Object FindObject(int fileIndex, long pathID, bool isSafe)
        {
            if (fileIndex >= m_dependencies.Count)
            {
                if (isSafe)
                {
                    return(null);
                }
                throw new Exception($"AssetsFile with index {fileIndex} was not found in dependencies");
            }

            AssetsFilePtr filePtr = m_dependencies[fileIndex];
            IAssetsFile   file    = m_collection.FindAssetsFile(filePtr);

            if (file == null)
            {
                if (isSafe)
                {
                    return(null);
                }
                throw new Exception($"AssetsFile with index {fileIndex} was not found in collection");
            }

            Object @object = file.FindObject(pathID);

            if (@object == null)
            {
                if (isSafe)
                {
                    return(null);
                }
                throw new Exception($"Object with path ID {pathID} was not found");
            }
            return(@object);
        }
Example #3
0
 public TextureParameter(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new Exception(nameof(assetsFile));
     }
     m_assetsFile = assetsFile;
 }
Example #4
0
 public TextureSettings(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentException(nameof(assetsFile));
     }
     m_assetsFile = assetsFile;
 }
Example #5
0
 public AssetInfo(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     Asset = new PPtr <Object>(assetsFile);
 }
Example #6
0
 public LayerConstant(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     BodyMask = new HumanPoseMask(assetsFile);
 }
Example #7
0
        private static AssetInfo CreateAssetsInfo(IAssetsFile assetsFile)
        {
            int        classID    = (int)ClassIDType.AnimatorStateMachine;
            ClassIDMap classIDMap = new ClassIDMap(classID, classID);
            AssetInfo  assetInfo  = new AssetInfo(assetsFile, 0, classIDMap);

            return(assetInfo);
        }
Example #8
0
 public QuaternionCurve(IAssetsFile assetsFile, string path) :
     this(assetsFile)
 {
     Path = path;
     Curve.PreInfinity   = 2;
     Curve.PostInfinity  = 2;
     Curve.RotationOrder = 4;
 }
Example #9
0
 public AnimationClipBindingConstant(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     m_assetsFile = assetsFile;
 }
Example #10
0
 public HandPose(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     GrabX = new XForm(assetsFile);
 }
Example #11
0
 public Vector3Curve(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     Curve = new AnimationCurveTpl <Vector3f>(assetsFile);
 }
Example #12
0
 public VertexData(IAssetsFile assetsFile, byte meshCompression)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     m_assetsFile = assetsFile;
 }
Example #13
0
 public ShaderSubProgram(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     m_assetsFile = assetsFile;
 }
Example #14
0
 public BlendShapeData(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     m_assetsFile = assetsFile;
 }
Example #15
0
 public ValueArray(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     m_assetsFile = assetsFile;
 }
Example #16
0
 public FastPropertyName(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     m_assetsFile = assetsFile;
 }
Example #17
0
 public AnimationEvent(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     ObjectReferenceParameter = new PPtr <Object>(assetsFile);
 }
Example #18
0
 public SerializedProgram(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new Exception(nameof(assetsFile));
     }
     m_assetsFile = assetsFile;
 }
Example #19
0
 public QuaternionCurve(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     Curve = new AnimationCurveTpl <Quaternionf>(assetsFile);
 }
Example #20
0
 public PPtrKeyframe(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException("version");
     }
     Script = new PPtr <Object>(assetsFile);
 }
 public UnityPropertySheet(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     m_assetsFile = assetsFile;
 }
Example #22
0
 public SerializedShaderState(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new Exception(nameof(assetsFile));
     }
     m_assetsFile = assetsFile;
 }
Example #23
0
 public ConstantBuffer(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new Exception(nameof(assetsFile));
     }
     m_assetsFile = assetsFile;
 }
Example #24
0
        private static AssetInfo CreateAssetsInfo(IAssetsFile assetsFile)
        {
            int        classID    = (int)ClassIDType.BlendTree;
            ClassIDMap classIDMap = new ClassIDMap(classID, classID);
            AssetInfo  assetInfo  = new AssetInfo(assetsFile, 0, classIDMap);

            return(assetInfo);
        }
Example #25
0
 public Collider(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     X = new XForm(assetsFile);
 }
Example #26
0
 public Axes(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     Limit = new Limit(assetsFile);
 }
Example #27
0
 public Skeleton(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     m_assetsFile = assetsFile;
 }
Example #28
0
 public StateConstant(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     m_assetsFile = assetsFile;
 }
Example #29
0
 public AnimationCurveTpl(IAssetsFile assetsFile)
 {
     if (assetsFile == null)
     {
         throw new ArgumentNullException(nameof(assetsFile));
     }
     m_assetsFile = assetsFile;
 }
Example #30
0
        public ChildAnimatorStateMachine(IAssetsFile assetsFile)
        {
            if (assetsFile == null)
            {
                throw new ArgumentNullException(nameof(assetsFile));
            }

            StateMachine = new PPtr <AnimatorStateMachine>(assetsFile);
        }