// This is a simple Rhai script that will be hot reloaded // It contains functions that will be called by the main program // It also uses functions from the utils.rhai script // A simple greeting function fn greet(name) { // Use the format_greeting function from utils.rhai let utils_greeting = format_greeting(name); "Hello, " + name + "! This is the original script. " + utils_greeting } // A function to calculate the sum of two numbers fn add(a, b) { a + b } // A function that uses the calculate function from utils.rhai fn advanced_calculation(x, y) { // Use the calculate function from utils.rhai calculate(x, y) * 2 }