public object[] GetAliasDelegateValues(int actionId) { List <object> values = new List <object>(); ActionBinding ab = Bindings[actionId]; foreach (int index in ab.Indices) { values.Add(ActionValues[index]); } return(values.ToArray()); }
/// <summary> /// this is called ClientSide only for tracking actual user input /// </summary> /// <param name="uniqId"></param> /// <param name="newValues"></param> public void SetActionValues(int uniqId, object[] newValues) { if (!Bindings.ContainsKey(uniqId)) { return; } ActionBinding ab = Bindings[uniqId]; int currentNewValueIndex = -1; foreach (int index in ab.Indices) { ActionValues[index] = newValues[++currentNewValueIndex]; } }