public static ENet.Packet Create(PacketType type, ENet.PacketFlags packetFlagType, params object[] values) { using var protocol = new Protocol(); var buffer = protocol.Serialize((byte)type, values); var packet = default(ENet.Packet); packet.Create(buffer, packetFlagType); return(packet); }
public RPCAttribute(RPCMode mode, ENet.PacketFlags flag = PacketFlags.Reliable) { }
public SyncAttribute(Priority priority, ENet.PacketFlags flag = PacketFlags.Reliable) { }