Initial work on rune as scripting library
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
13
tests/data/scripts/moves/test.rn
Normal file
13
tests/data/scripts/moves/test.rn
Normal file
@@ -0,0 +1,13 @@
|
||||
mod moves {
|
||||
|
||||
struct TestMove;
|
||||
|
||||
impl TestMove {
|
||||
pub fn change_speed(self, choice, speed) {
|
||||
println(`change_speed: ${choice.speed()}`);
|
||||
println(`user level: ${choice.user().level()}`);
|
||||
speed.value = 100;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user