예제 #1
0
        static ModPacket PrepareOpResult(StorageOp op)
        {
            ModPacket packet = MagicStoragePlus.Instance.GetPacket();

            packet.Write((byte)MessageType.StorageOperationResult);
            packet.Write((byte)op);
            return(packet);
        }
예제 #2
0
 public static void SendWithdraw(int ent, Item item, StorageOp type)
 {
     if (Main.netMode == 1)
     {
         ModPacket packet = PrepareStorageOperation(ent, type);
         ItemIO.Send(item, packet, true);
         packet.Send();
     }
 }
예제 #3
0
        static ModPacket PrepareStorageOperation(int ent, StorageOp op)
        {
            ModPacket packet = MagicStoragePlus.Instance.GetPacket();

            packet.Write((byte)MessageType.TryStorageOp);
            packet.Write(ent);
            packet.Write((byte)op);
            return(packet);
        }