Binato/server/packets/ChangeAction.ts
2022-11-21 23:26:20 +00:00

11 lines
No EOL
319 B
TypeScript

import { User } from "../objects/User";
import { StatusUpdate } from "./StatusUpdate";
export function ChangeAction(user:User, data:any) {
user.updatePresence(data);
if (user.spectatorStream != null) {
const statusUpdate = StatusUpdate(user.sharedContent, user.id);
user.spectatorStream.Send(statusUpdate);
}
}