Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public RPCAttribute(RPCMode mode, ENet.PacketFlags flag = PacketFlags.Reliable)
 {
 }
Esempio n. 3
0
 public SyncAttribute(Priority priority, ENet.PacketFlags flag = PacketFlags.Reliable)
 {
 }