aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/sender/sendMusic.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client/sender/sendMusic.ts')
-rw-r--r--webAO/client/sender/sendMusic.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/webAO/client/sender/sendMusic.ts b/webAO/client/sender/sendMusic.ts
new file mode 100644
index 0000000..eceba08
--- /dev/null
+++ b/webAO/client/sender/sendMusic.ts
@@ -0,0 +1,10 @@
+import { client } from "../../client";
+
+
+/**
+ * Requests to select a music track.
+ * @param {number?} song the song to be played
+ */
+export const sendMusic = (song: string) => {
+ client.sender.sendServer(`MC#${song}#${client.charID}#%`);
+} \ No newline at end of file