How to extend Soap?

You can expand this plugin by creating your own scriptable variables, lists, and events. You can either:

  1. Use the Soap Type Creator to automatically generate the code for the classes.

  2. Write the classes yourself. If you choose the latter, simply create a new class that inherits from the following classes and replace 'T' with your type:

  • ScriptableVariable<T>

  • ScriptableList<T>

  • ScriptableEvent<T>

  • ScriptableSave<T>

  • EventListener<T>

  • VariableReferences<V, T>

Ensure your class is Serializable by adding the [System.Serializable] attribute to it.

Example: ScriptableVariableYourType : ScriptableVariable<YourType>

For ScriptableEnums, simply inherit from ScriptableEnumBase.

Finally, you can create new 'Binding' components. While I have developed a few, you are encouraged to be creative and design bindings that will be beneficial in your games. Examples of how to extend the package can be found in the scripts of various examples.

Last updated