13 lines
348 B
Plaintext
13 lines
348 B
Plaintext
// object.rhai
|
|
|
|
// Assuming a builder function `object__builder` exists based on the project's pattern.
|
|
let new_object = object__builder(1)
|
|
.name("My Dynamic Object")
|
|
.description("An example of a generic object.")
|
|
.set_property("custom_field", "custom_value")
|
|
.build()
|
|
.save_object();
|
|
|
|
print("New Object:");
|
|
print(new_object);
|