implement osis actor

This commit is contained in:
Timur Gordon
2025-08-06 14:56:44 +02:00
parent 8f6ea5350f
commit 33dfc0dbe3
23 changed files with 5769 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
// product.rhai
// Create a product component
let component = new_product_component()
.name("Sub-component A")
.description("A vital part of the main product.")
.quantity(10);
print("New Product Component:");
print(component);
// Create a product and add the component
let new_product = new_product()
.name("Super Product")
.description("A product that does amazing things.")
.price(99.99)
.type("Product")
.category("Gadgets")
.status("Available")
.max_amount(100)
.purchase_till(1735689600) // Future timestamp
.active_till(1735689600) // Future timestamp
.add_component(component)
.save_product();
print("\nNew Product:");
print(new_product);