public void SetVariable(MyCueVariableEnum variable, float value)
 {
     if (IsValid)
     {
         m_cue.SetVariable(variable, value);
     }
 }
Exemple #2
0
 public void SetVariable(MyCueVariableEnum variable, float value)
 {
     if (IsValid)
     {
         m_cue.SetVariable(variable, value);
     }
 }
Exemple #3
0
        public static void SetVariable(Cue cue, MyCueVariableEnum variableEnum, float value)
        {
            var varInfo = m_cueVariables[(int)variableEnum];

            if (varInfo.VariableIndex == -1 || CacheEnabled == false)
            {
                varInfo.VariableIndex = cue.GetVariableIndex(varInfo.VariableName);
                m_cueVariables[(int)variableEnum].VariableIndex = varInfo.VariableIndex;
            }
            cue.SetVariable(varInfo.VariableIndex, value);
        }
        public static void SetVariable(Cue cue, MyCueVariableEnum variableEnum, float value)
        {
            var varInfo = m_cueVariables[(int)variableEnum];

            if (varInfo.VariableIndex == -1 || CacheEnabled == false)
            {
                varInfo.VariableIndex = cue.GetVariableIndex(varInfo.VariableName);
                m_cueVariables[(int)variableEnum].VariableIndex = varInfo.VariableIndex;
            }
            cue.SetVariable(varInfo.VariableIndex, value);
        }
Exemple #5
0
 public static void SetVariableIndex(MyCueVariableEnum variableEnum, short index)
 {
     m_cueVariables[(int)variableEnum].VariableIndex = index;
 }
Exemple #6
0
 public static string GetVariableName(MyCueVariableEnum variableEnum)
 {
     return(m_cueVariables[(int)variableEnum].VariableName);
 }
Exemple #7
0
 public static short GetVariableIndex(MyCueVariableEnum variableEnum)
 {
     return(m_cueVariables[(int)variableEnum].VariableIndex);
 }
 public static void SetVariable(this Cue cue, MyCueVariableEnum variableEnum, float value)
 {
     MyXactVariables.SetVariable(cue, variableEnum, value);
 }
Exemple #9
0
 public static void SetVariable(this Cue cue, MyCueVariableEnum variableEnum, float value)
 {
     MyXactVariables.SetVariable(cue, variableEnum, value);
 }
Exemple #10
0
 private static void CheckVar(MyCueVariableEnum variableEnum, Cue cue)
 {
     var index = MyXactVariables.GetVariableIndex(variableEnum);
     var cindex = cue.GetVariableIndex(MyXactVariables.GetVariableName(variableEnum));
     if (index == -1)
     {
         MyXactVariables.SetVariableIndex(variableEnum, cindex);
     }
     else
     {
         System.Diagnostics.Debug.Assert(index == cindex, "Variable index invalid");
     }
 }
 public static void SetVariableIndex(MyCueVariableEnum variableEnum, short index)
 {
     m_cueVariables[(int)variableEnum].VariableIndex = index;
 }
 public static string GetVariableName(MyCueVariableEnum variableEnum)
 {
     return m_cueVariables[(int)variableEnum].VariableName;
 }
 public static short GetVariableIndex(MyCueVariableEnum variableEnum)
 {
     return m_cueVariables[(int)variableEnum].VariableIndex;
 }