vignetteapp / vignette

The open source VTuber software. ❤
https://www.vignetteapp.org
Other
520 stars 33 forks source link

Implement Extensions System #262

Closed LeNitrous closed 2 years ago

LeNitrous commented 2 years ago

Base implementation for extensions. Closes #251.

LeNitrous commented 2 years ago

VFS is a part of Stride. They have documentations for it on their end.

sr229 commented 2 years ago

VFS is a part of Stride. They have documentations for it on their end.

We're not talking about the VFS, we're talking about how we use it. Is this still in-line with our spec in #251?

LeNitrous commented 2 years ago

For the most part yes specially with handling of the metadata.

However, I've taken a few liberties in the scripting API and loading the entry point script. A minimal working example is basically an ES6 Javascript file with two exports named activate and deactivate respectively. Additionally, the developer can access the core by importing the vignette module.

import { vignette } from "vignette";

export function activate() { }

export function deactivate() { }

This PR is only the bare minimum and does not fully implement the specification. Other parts of the API will be added in different PRs at a later time after consideration and discussion.