public override bool CreateConfigurationMenu(ExtensionParameter extensionParameter, ref Dictionary <string, object> Parameters) { Invert = ImGuiExtension.Checkbox("Invert", Invert); ImGuiExtension.ToolTip("Check this box to invert the returned value of this condition.\nFor Example when enabled, if the condition returns true when in hideout, it would now return true when NOT in hideout."); Parameters[InvertString] = Invert.ToString(); return(true); }
/// <summary> /// Called before each tick of the behavior tree intended for caching purposes. /// </summary> /// <param name="extensionParameter">Extension parameter used to populate the cache</param> /// <param name="cache">Key of the dictionary should be a unique key for this extension. The value is a key value pair of cached values.</param> public abstract void UpdateCache(ExtensionParameter extensionParameter, Dictionary <string, Dictionary <string, object> > cache);
public abstract Func <bool> GetCondition(ExtensionParameter extensionParameter);
/// <summary> /// Returns the behavior tree composite for this action. /// This composite can be as simple or complex as necessary. /// </summary> /// <param name="profileParameter">A parameter containing everything needed for creating the composite</param> /// <returns>Composite tree to be run</returns> public abstract Composite GetComposite(ExtensionParameter profileParameter);
/// <summary> /// Called when configuring this component. Should draw all necessary configuration and save it in the parameters dictionary. /// </summary> /// <param name="Parameters"></param> /// <returns>Not currently used. Recommended to return true.</returns> public abstract bool CreateConfigurationMenu(ExtensionParameter extensionParameter, ref Dictionary <String, Object> Parameters);