NodotProject / nodot

A node composition library for Godot 4
https://nodotproject.github.io/nodot/
MIT License
333 stars 12 forks source link

Add key value storage and global key value store #142

Closed krazyjakee closed 1 year ago

krazyjakee commented 1 year ago

Introduces a key-value storage system and a global key-value store to our project.

The GlobalStorage class is added, which provides a Redis-like implementation to store key-value pairs. It includes methods to set values for keys, retrieve values, check for key existence, and delete key-value pairs. Additionally, it emits signals when values are changed or keys are deleted.

The GlobalSignal class is updated to include methods for adding listeners, removing listeners, and triggering signals for specific keys.

These changes improve the project by providing a convenient and efficient way to store and retrieve data throughout the application. The key-value storage system allows for easy data management and communication between different parts of the project.