public static void SendToClients(Cutscene cutscene, int ignoreWho) { if (Main.netMode != NetmodeID.Server) { throw new ModHelpersException("Not server"); } CutsceneStartProtocol protocol = cutscene.CreatePacketPayload(); NetIO.SendToClients( data: protocol, ignoreWho: ignoreWho ); }
public static void SendToClients(Cutscene cutscene, int ignoreWho) { if (Main.netMode != NetmodeID.Server) { throw new ModHelpersException("Not server"); } var protocol = new CutsceneEndProtocol(cutscene); NetIO.SendToClients( data: protocol, ignoreWho: ignoreWho ); }
public static void SendToClients(CutsceneLibPlayer plrData, int toWho, int ignoreWho) { var protocol = new PlayerDataNetData(plrData); NetIO.SendToClients(protocol, toWho, ignoreWho); }