public ParameterInputFunc(string name, ParameterSignal callback) : base(name) { this.callback = callback; }
/// <summary> /// Links an editor callback name to a method inside this entity. /// This data is exposed for the I/O system. /// </summary> /// <param name="name">Name.</param> /// <param name = "component"></param> /// <param name="callback">Callback.</param> protected void DefineInputFunc(string name, string component, ParameterSignal callback) { if (!inputFuncs.ContainsKey(component)) { inputFuncs.Add(component, new List<InputFunc>(5)); } this.inputFuncs[component].Add(new ParameterInputFunc(name, callback)); }