public static void Broadcast(Cutscene cutscene) { if (Main.netMode != NetmodeID.MultiplayerClient) { throw new ModHelpersException("Not client"); } CutsceneStartProtocol protocol = cutscene.CreatePacketPayload(); NetIO.Broadcast(protocol); }
public static void Broadcast(Cutscene cutscene) { if (Main.netMode != NetmodeID.MultiplayerClient) { throw new ModHelpersException("Not client"); } var protocol = new CutsceneEndProtocol(cutscene); NetIO.Broadcast(protocol); }