From 5cef76e46bc3e7a1d1b19b91fc8e470ff087c847 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Wed, 19 May 2021 18:15:15 -0500 Subject: [PATCH] Switch from camel case to snake case --- c2logic/instruction_definition.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/c2logic/instruction_definition.c b/c2logic/instruction_definition.c index e381f9b..f71b484 100644 --- a/c2logic/instruction_definition.c +++ b/c2logic/instruction_definition.c @@ -103,16 +103,16 @@ void unit_target(double x, double y, double shoot) { void unit_targetp(double unit, double shoot) { asm("ucontrol targetp {unit} {shoot} 0 0 0"); } -void unit_itemDrop(struct MindustryObject obj, double amount) { +void unit_item_drop(struct MindustryObject obj, double amount) { asm("ucontrol itemDrop {obj} {amount} 0 0 0"); } -void unit_itemTake(struct MindustryObject obj, char* item, double amount) { +void unit_item_take(struct MindustryObject obj, char* item, double amount) { asm("ucontrol itemTake {obj} @{item} {amount} 0 0"); } -void unit_payDrop() { +void unit_pay_drop() { asm("ucontrol payDrop 0 0 0 0 0"); } -void unit_payTake(double takeUnits) { +void unit_pay_take(double takeUnits) { asm("ucontrol payTake {takeUnits} 0 0 0 0"); } void unit_mine(double x, double y) { @@ -127,6 +127,7 @@ void unit_build(double x, double y, char* block, double rotation, char* configur double unit_within(double x, double y, double radius) { asm("ucontrol within {x} {y} {radius} {dest} 0"); } -struct MindustryObject unit_radar(char* target1, char* target2, char* target3, char* sort, double order) { +struct MindustryObject unit_radar(char* target1, char* target2, char* target3, char* sort, + double order) { asm("uradar {target1} {target2} {target3} {sort} 0 {order} {dest}"); }