Fully Remove MessageType override
This commit is contained in:
1 parent
ceab1da352
commit
3388fa5df4
55 files changed
+6
-128
No files matched your search
@@ -2,16 +2,13 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net.Sockets;
|
||||
using CalamityMod.DataStructures;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Packets;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent.UI;
|
||||
using Terraria.GameInput;
|
||||
using Terraria.ID;
|
||||
@@ -389,7 +386,7 @@ namespace CalamityMod.Items.Accessories
|
||||
}
|
||||
|
||||
hookCache = -1;
|
||||
if (!obeyGravity)
|
||||
if (!obeyGravity)
|
||||
{
|
||||
Player.gravity = -1f; //Disable player gravity with Anti-Grav hook
|
||||
}
|
||||
@@ -463,7 +460,7 @@ namespace CalamityMod.Items.Accessories
|
||||
Player.velocity.X = Player.velocity.X == 0 ? 1.5f : 1.5f * Math.Sign(Player.velocity.X);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
else
|
||||
{
|
||||
if (Player.grappling[0] > -1)
|
||||
@@ -471,7 +468,7 @@ namespace CalamityMod.Items.Accessories
|
||||
var Hook = Main.projectile[Player.grappling[0]];
|
||||
if (Hook != null)
|
||||
{
|
||||
|
||||
|
||||
if (Player.controlRight)
|
||||
Player.velocity.X += 0.3f;
|
||||
else if (Player.controlLeft)
|
||||
@@ -488,7 +485,7 @@ namespace CalamityMod.Items.Accessories
|
||||
var dis = Hook.Center.Distance(estimatedPos);
|
||||
if (dis > SwingLength && dis < 1000f)
|
||||
{
|
||||
var dis2 = Math.Min(Player.Center.Distance(goalPos), SwingLength*3f);
|
||||
var dis2 = Math.Min(Player.Center.Distance(goalPos), SwingLength * 3f);
|
||||
if (dis2 > 0)
|
||||
{
|
||||
Player.velocity = Player.Center.DirectionTo(goalPos) * dis2;
|
||||
@@ -769,7 +766,7 @@ namespace CalamityMod.Items.Accessories
|
||||
WulfrumAcrobaticsLengthSync.Send(
|
||||
new WulfrumAcrobaticsLengthSync.Data((byte)Player.whoAmI, SwingLength, setControlUpFalse)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -791,8 +788,6 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public static WulfrumAcrobaticsSync Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.WulfrumAcrobaticsSync;
|
||||
|
||||
public static void Send(Player player, WulfrumPackPlayer mPlayer, Projectile proj, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
Send(
|
||||
@@ -866,8 +861,6 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public static WulfrumAcrobaticsJumpSync Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.WulfrumAcrobaticsJumpSync;
|
||||
|
||||
public static void Send(Data data, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
@@ -930,8 +923,6 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public static WulfrumAcrobaticsLengthSync Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.WulfrumAcrobaticsLengthSync;
|
||||
|
||||
public static void Send(Data data, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -8,7 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
internal abstract class CalamityPacket : ILoadable
|
||||
{
|
||||
public abstract byte MessageType { get; }
|
||||
public abstract void HandlePacket(in BinaryReader packet, int sender);
|
||||
|
||||
private ushort _NetID;
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static CodebreakerSummonStuffPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.CodebreakerSummonStuff;
|
||||
|
||||
public static void Send(int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static ExoMechSelectionPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.ExoMechSelection;
|
||||
|
||||
public static void Send(int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static SyncAndroombaAIPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.SyncAndroombaAI;
|
||||
|
||||
public static void Send(AndroombaFriendly roomba, int phase = -1, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (roomba is null)
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static SyncAndroombaSolutionPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.SyncAndroombaSolution;
|
||||
|
||||
public static void Send(AndroombaFriendly roomba, int solType = -1, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (roomba is null)
|
||||
|
||||
@@ -6,7 +6,6 @@ namespace CalamityMod.Packets.Entities
|
||||
internal sealed class DemonSwordImpalesSyncPacket : CalamityPacket
|
||||
{
|
||||
public static DemonSwordImpalesSyncPacket Instance { get; private set; }
|
||||
public override byte MessageType => (byte)CalamityModMessageType.SyncNPCDemonSwordImpales;
|
||||
|
||||
public static void Send(NPC npc, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,6 @@ namespace CalamityMod.Packets.Entities
|
||||
internal sealed class DemonicFlamesSyncPacket : CalamityPacket
|
||||
{
|
||||
public static DemonicFlamesSyncPacket Instance { get; private set; }
|
||||
public override byte MessageType => (byte)CalamityModMessageType.SyncNPCDemonicFlamesDamage;
|
||||
|
||||
public static void Send(NPC npc, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static PlaceAltCritterPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.PlaceAltCritter;
|
||||
|
||||
/// <summary>
|
||||
/// Same Method, but uses critterItem.makeNPC and critterItem.type for shorthanded call
|
||||
/// </summary>
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static PSCChallengeSyncPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.PSCChallengeSync;
|
||||
|
||||
public static void Send(Providence providence, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (providence is null)
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static ProvidenceDyeConditionSyncPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.ProvidenceDyeConditionSync;
|
||||
|
||||
public static void Send(Providence providence, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (providence is null)
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static SyncSlabCrabAIPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.SyncSlabCrabAI;
|
||||
|
||||
public static void Send(SlabCrab crab, int phase = -1, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (crab is null)
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static SpawnBossOnPositionPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.SpawnBossOnPosition;
|
||||
|
||||
public static void Send(int x, int y, int npcType, Player target = null, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static SpawnNPCOnPlayerPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.SpawnNPCOnPlayer;
|
||||
|
||||
public static void Send(Player player, int x, int y, int npcType, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (player is null)
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static DeleteAllSuperDummiesPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.DeleteAllSuperDummies;
|
||||
|
||||
public static void Send(int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -10,8 +10,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static SpawnSuperDummyPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.SpawnSuperDummy;
|
||||
|
||||
public static void Send(int x, int y, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -10,8 +10,6 @@ namespace CalamityMod.Packets
|
||||
|
||||
public static SyncCalamityNPCAIArrayPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.SyncCalamityNPCAIArray;
|
||||
|
||||
public static void Send(NPC npc, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (npc is null)
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static SyncNPCMotionDataToServerPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.SyncNPCMotionDataToServer;
|
||||
|
||||
public static void Send(NPC npc, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (npc is null)
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static SyncNPCPosAndRotOnlyPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.SyncNPCPosAndRotOnly;
|
||||
|
||||
public static void Send(NPC npc, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (npc is null)
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static SyncVanillaNPCLocalAIArrayPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.SyncVanillaNPCLocalAIArray;
|
||||
|
||||
public static void Send(NPC npc, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (npc is null)
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static AcidRainOldDukeSummonSyncPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.AcidRainOldDukeSummonSync;
|
||||
|
||||
public static void Send(int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static AcidRainSyncPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.AcidRainSync;
|
||||
|
||||
public static void Send(int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static EncounteredOldDukeSyncPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.EncounteredOldDukeSync;
|
||||
|
||||
public static void Send(int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static BRHostileProjKillSyncPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.BRHostileProjKillSync;
|
||||
|
||||
public static void Send(int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static BossRushEndTimerPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.BossRushEndTimer;
|
||||
|
||||
public static void Send(int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static BossRushStagePacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.BossRushStage;
|
||||
|
||||
public static void Send(int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static BossRushStartTimerPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.BossRushStartTimer;
|
||||
|
||||
public static void Send(int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static EndBossRushPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.EndBossRush;
|
||||
|
||||
public static void Send(int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static MusicEventSyncRequestPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.MusicEventSyncRequest;
|
||||
|
||||
public static void Send(int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
// Only MP Client should send request!
|
||||
|
||||
@@ -9,8 +9,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static MusicEventSyncResponsePacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.MusicEventSyncResponse;
|
||||
|
||||
public static void Send(int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
// Only Server should send Reponse to Clients
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static AdrenalineSyncPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.AdrenalineSync;
|
||||
|
||||
public static void Send(CalamityPlayer playerToSync, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (playerToSync is null)
|
||||
|
||||
@@ -10,8 +10,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static CooldownAdditionPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.CooldownAddition;
|
||||
|
||||
public static void Send(CalamityPlayer player, CooldownInstance cd, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
Send(player, cd.netID, cd.duration, cd.timeLeft, toClient, ignoreClient);
|
||||
|
||||
@@ -10,8 +10,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static CooldownRemovalPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.CooldownRemoval;
|
||||
|
||||
public static void Send(CalamityPlayer player, ushort[] netIDsToRemove, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (player is null)
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static DefenseDamageSyncPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.DefenseDamageSync;
|
||||
|
||||
public static void Send(CalamityPlayer playerToSync, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (playerToSync is null)
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static ExaltationDirectionSyncPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.ExaltationDirection;
|
||||
|
||||
public static void Send(CalamityPlayer playerToSync, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (playerToSync is null)
|
||||
|
||||
@@ -9,8 +9,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static MousePositionSyncPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.MousePositionSync;
|
||||
|
||||
public static void Send(CalamityPlayer player, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (player is null)
|
||||
|
||||
@@ -9,8 +9,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static MouseRotationSyncPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.MouseRotationSync;
|
||||
|
||||
public static void Send(CalamityPlayer player, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (player is null)
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static RageSyncPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.RageSync;
|
||||
|
||||
public static void Send(CalamityPlayer playerToSync, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (playerToSync is null)
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static RightClickSyncPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.RightClickSync;
|
||||
|
||||
public static void Send(CalamityPlayer player, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (player is null)
|
||||
|
||||
@@ -14,8 +14,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static SyncCooldownDictionaryPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.SyncCooldownDictionary;
|
||||
|
||||
public static void Send(CalamityPlayer player, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (player is null)
|
||||
|
||||
@@ -9,8 +9,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static SyncPlayerDrawParameterPacket Instance { get; set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.SyncPlayerDrawParameter;
|
||||
|
||||
public static void Send(CalamityPlayer player, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (player is null)
|
||||
|
||||
@@ -1,18 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Systems;
|
||||
using CalamityMod.UI.DialogueDisplay.DisplayEffects;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader.IO;
|
||||
using Terraria.Net;
|
||||
using static CalamityMod.UI.DialogueDisplay.DialogueDisplaySystem;
|
||||
|
||||
namespace CalamityMod.Packets
|
||||
@@ -21,8 +13,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static StartDialogueDisplayPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.DialogueDisplayStart;
|
||||
|
||||
public static void Send(string name, bool progressDialogue, Vector2 position, int index, int uptime, DisplayEffectID effect, float wrapWidth, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
// Only Server should send Reponse to Clients
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static TECanvasPaintingPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.UpdateCanvasPainting;
|
||||
|
||||
public static void Send(TECanvasPainting painting, float posX, float posY, float scale, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (painting is null)
|
||||
|
||||
@@ -9,8 +9,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static TEChargingStationItemChangePacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.ChargingStationItemChange;
|
||||
|
||||
public static void Send(TEChargingStation chargingStn, Item pluggedItem, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (chargingStn is null)
|
||||
|
||||
@@ -10,8 +10,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static TEChargingStationStandardPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.ChargingStationStandard;
|
||||
|
||||
public static void Send(TEChargingStation chargingStn, short timer, short cellStack, float chargeOrNaN, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (chargingStn is null)
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static TELabHologramProjectorPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.LabHologramProjector;
|
||||
|
||||
public static void Send(TELabHologramProjector projector, bool poppingUp, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (projector is null)
|
||||
|
||||
@@ -9,8 +9,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static TEPowerCellFactoryPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.PowerCellFactory;
|
||||
|
||||
public static void Send(TEPowerCellFactory cellFactory, long time, int stack, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (cellFactory is null)
|
||||
|
||||
@@ -9,8 +9,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static TETurretPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.Turret;
|
||||
|
||||
public static void Send(TEBaseTurret turret, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (turret is null)
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static TEUpdateCodebreakerConstituentsPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.UpdateCodebreakerConstituents;
|
||||
|
||||
public static void Send(TECodebreaker codeBreaker, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (codeBreaker is null)
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static TEUpdateCodebreakerContainedStuffPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.UpdateCodebreakerContainedStuff;
|
||||
|
||||
public static void Send(TECodebreaker codeBreaker, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (codeBreaker is null)
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static TEUpdateCodebreakerDecryptCountdownPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.UpdateCodebreakerDecryptCountdown;
|
||||
|
||||
public static void Send(TECodebreaker codeBreaker, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
if (codeBreaker is null)
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static BanditStolenMoneySyncPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.BanditStolenMoneySync;
|
||||
|
||||
public static void Send(int amountStolenByBandit, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -10,8 +10,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static SwitchToDifficultyPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.SwitchToDifficulty;
|
||||
|
||||
public static void Send(DifficultyMode modeToSwitch, int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -7,8 +7,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static UnlockAbyssChestsPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.UnlockAbyssChests;
|
||||
|
||||
public static void Send(int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
@@ -9,8 +9,6 @@ namespace CalamityMod.Packets
|
||||
{
|
||||
public static WantToRefundReforgesPacket Instance { get; private set; }
|
||||
|
||||
public override byte MessageType => (byte)CalamityModMessageType.WantToRefundReforges;
|
||||
|
||||
public static void Send(int toClient = -1, int ignoreClient = -1)
|
||||
{
|
||||
var packet = Instance.CreateBasePacket();
|
||||
|
||||
Reference in new issue
Block a user