Skip to content

Upcoming Features

Darkly77 edited this page Feb 27, 2023 · 17 revisions

This page cover features that are currently only on the develop branch.

When features here are merged into main and published in a release, their content will be moved to the proper location.

Saving

via: #143

There are 2 methods you can use to save data to a file:

save_string_to_file

save_string_to_file(save_string, filepath)

func save_string_to_file(
	save_string: String,
	filepath: String	
) -> bool

Example:

var my_string = "hello world"
ModLoader.save_string_to_file(my_string, "user://custom_1.txt")

save_dictionary_to_file

save_dictionary_to_file(data, filepath)

func save_dictionary_to_file(
	data: Dictionary,
	filepath: String
) -> bool

Example:

var my_dictionary = {
	"foo": "bar"
}
ModLoader.save_dictionary_to_file(my_dictionary, "user://custom_2.json")

TODO

These features have been merged into main and released, but there's no documentation for them yet.

overwrites.gd

Clone this wiki locally