diff options
Diffstat (limited to 'bowshock/source/bs/objTypStr.c')
-rw-r--r-- | bowshock/source/bs/objTypStr.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/bowshock/source/bs/objTypStr.c b/bowshock/source/bs/objTypStr.c new file mode 100644 index 0000000..9093014 --- /dev/null +++ b/bowshock/source/bs/objTypStr.c @@ -0,0 +1,28 @@ +// Copyright 2022-2023 Gabriel Jensen. + +#include <bow/lgc.h> + +char const * bow_objTypStr(bow_objTyp const typ) { + char const * str; + switch (typ) { + case bow_objTyp_can: + str = "canister"; + break; + case bow_objTyp_pl: + str = "player"; + break; + case bow_objTyp_ship: + str = "ship"; + break; + case bow_objTyp_star: + str = "star"; + break; + case bow_objTyp_station: + str = "station"; + break; + case bow_objTyp_wrld: + str = "world"; + break; + } + return str; +} |