SRMP-Public/SRMP/Packets/Players/PacketPlayerPosition.cs

24 lines
574 B
C#
Raw Normal View History

2023-05-29 22:23:11 +02:00
using Lidgren.Network;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace SRMultiplayer.Packets
{
[Packet(PacketType.PlayerPosition)]
public class PacketPlayerPosition : Packet
{
public byte ID;
public Vector3 Position;
public float Rotation;
public float WeaponY;
public byte RegionSet;
public bool OnLoad = true;
2023-05-29 22:23:11 +02:00
public PacketPlayerPosition() { }
public PacketPlayerPosition(NetIncomingMessage im) { Deserialize(im); }
}
}