aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/sender/sendMusicChange.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client/sender/sendMusicChange.ts')
-rw-r--r--webAO/client/sender/sendMusicChange.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/webAO/client/sender/sendMusicChange.ts b/webAO/client/sender/sendMusicChange.ts
new file mode 100644
index 0000000..50c6306
--- /dev/null
+++ b/webAO/client/sender/sendMusicChange.ts
@@ -0,0 +1,10 @@
+import { client } from "../../client";
+
+
+/**
+ * Requests to change the music to the specified track.
+ * @param {string} track the track ID
+ */
+export const sendMusicChange = (track: string) => {
+ client.sender.sendServer(`MC#${track}#${client.charID}#%`);
+}