public void SetVariable(MyCueVariableEnum variable, float value) { if (IsValid) { m_cue.SetVariable(variable, 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); }
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); }
public static void SetVariable(this Cue cue, MyCueVariableEnum variableEnum, float value) { MyXactVariables.SetVariable(cue, variableEnum, value); }
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 string GetVariableName(MyCueVariableEnum variableEnum) { return m_cueVariables[(int)variableEnum].VariableName; }
public static short GetVariableIndex(MyCueVariableEnum variableEnum) { return m_cueVariables[(int)variableEnum].VariableIndex; }