Exemple #1
0
        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);
        }
Exemple #2
0
 /// <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);
Exemple #3
0
 public abstract Func <bool> GetCondition(ExtensionParameter extensionParameter);
Exemple #4
0
 /// <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);