Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skript-bindables

A bindables library for Skript inspired by kotlin-bindables system.

What are bindables?

A Bindable is a struct that can hold a value and provide callbacks to when the value is changed.

Dependencies

  • oopsk-1.0-beta2
  • Skript-2.14.x
  • skript-reflect-2.6.2

Install

With pacskage:

/package install https://github.com/miberss/skript-bindables

Usage

More here will be filled out later, but for now you can look at the -examples/ folder to see concrete usages with header descriptions. The folder is prefixed with - so Skript does not load the demos; drop the prefix to run them.

Extras

You can use bind_update(bindable, value?) to run the callbacks and update the value to them without explicitly changing the field.

You can also use bind_set_silently(bindable, value) which will set the value of the bindable without running any of the callbacks

Contributing

Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests on the GitHub repository.

License

skript-bindables is open-source and available under the NON-AI-UNLICENSE

About

Bindables library for Skript

Topics

Resources

Stars

6 stars

Watchers

0 watching

Forks

Contributors