Beispiel #1
0
 public static Task GenerateDelay(this IPlayerEntity player, int delay, DelayPacketType type, string argument) => player.SendPacketAsync(player.GenerateDelayPacket(delay, type, argument));
Beispiel #2
0
 public static DelayPacket GenerateDelayPacket(this IPlayerEntity player, int delay, DelayPacketType type, string argument) =>
 new DelayPacket
 {
     Delay    = delay,
     Type     = type,
     Argument = argument
 };