Ejemplo n.º 1
0
        private static void EvaluateParams(float time)
        {
            int nParameter = listParameterModifierAction_.Count;

            for (int i = 0; i < nParameter; i++)
            {
                ParamaterModifierAction pmAction = listParameterModifierAction_[i];

                ICarParameterEvaluator   paramEvaluator = pmAction.Third;
                ParameterModifierCommand pmCommand      = pmAction.Fourth;

                paramEvaluator.Evaluate(time, paramTmp_);
                pmCommand.SetValue(paramTmp_);

                CarDataUtils.SetParameterModifierCommand(ref commandTmp_, pmCommand);
                ParameterModifierManager.ModifyGenericParameter(pmAction.First, pmAction.Second, ref commandTmp_);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Builds a list with all the scene fx and their status(included/not included)
        /// </summary>
        void BuildEffectList()
        {
            List <Tuple2 <Caronte_Fx, int> > listCaronteFx;

            CarDataUtils.GetCaronteFxsRelations(cnManager_.FxData, out listCaronteFx);

            for (int i = 0; i < listCaronteFx.Count; i++)
            {
                Caronte_Fx fx    = listCaronteFx[i].First;
                int        depth = listCaronteFx[i].Second;

                bool alreadyAdded = cnManager_.IsEffectIncluded(fx);
                bool wouldProduceInfiniteRecursion = cnManager_.RootNodeAlreadyContainedInNode(fx);

                listCaronteFx_.Add(Tuple4.New(fx, depth, alreadyAdded, wouldProduceInfiniteRecursion));
            }
            arrEffectsToInclude = new BitArray(listCaronteFx_.Count);
            for (int i = 0; i < arrEffectsToInclude.Length; i++)
            {
                arrEffectsToInclude[i] = listCaronteFx_[i].Third;
            }
        }