Beispiel #1
0
        /// <summary>
        /// Creates a new <see cref="BlockNetworkCommand60EventServerPayload"/> with the provided <see cref="command"/> 0x60
        /// command.
        /// </summary>
        /// <param name="command">The command to initialize the payload with.</param>
        /// <returns>A new <see cref="BlockNetworkCommand60EventServerPayload"/> with the <see cref="command"/></returns>
        public static BlockNetworkCommand60EventServerPayload ToServerPayload([NotNull] this BaseSubCommand60 command)
        {
            if (command == null)
            {
                throw new ArgumentNullException(nameof(command));
            }

            //Just create a new command container (the 0x60 payload) around the command.
            return(new BlockNetworkCommand60EventServerPayload(command));
        }
Beispiel #2
0
 public override void Write(BaseSubCommand60 value, Span <byte> buffer, ref int offset)
 {
     Sub60MovingFastPositionSetCommand_Serializer.Instance.InternalWrite(this, buffer, ref offset);
 }
 public override void Write(BaseSubCommand60 value, Span <byte> buffer, ref int offset)
 {
     Sub60FinishedWarpingBurstingCommand_Serializer.Instance.InternalWrite(this, buffer, ref offset);
 }
 public override void Write(BaseSubCommand60 value, Span <byte> buffer, ref int offset)
 {
     Sub60PlayerBeginTechniqueCastCommand_Serializer.Instance.InternalWrite(this, buffer, ref offset);
 }
 public override void Write(BaseSubCommand60 value, Span <byte> buffer, ref int offset)
 {
     Sub60PlayerChangedObjectStateCommand_Serializer.Instance.InternalWrite(this, buffer, ref offset);
 }
Beispiel #6
0
 /// <inheritdoc />
 public BlockNetworkCommand60EventClientPayload([NotNull] BaseSubCommand60 command)
     : this()
 {
     Command = command ?? throw new ArgumentNullException(nameof(command));
 }
Beispiel #7
0
 //TODO: We can probably cache this string for performance in the future
 /// <summary>
 /// Computes the hex string opcode for the provided <see cref="BaseSubCommand60"/>.
 /// </summary>
 /// <param name="command"></param>
 /// <returns></returns>
 public static string OpCodeHexString(this BaseSubCommand60 command)
 {
     return($"0x60 {command.CommandOperationCode:X}");
 }
 public override void Write(BaseSubCommand60 value, Span <byte> buffer, ref int offset)
 {
     Sub60StartNewWarpCommand_Serializer.Instance.InternalWrite(this, buffer, ref offset);
 }
Beispiel #9
0
 public override void Write(BaseSubCommand60 value, Span <byte> buffer, ref int offset)
 {
     Sub60GameBurstingCompleteEventCommand_Serializer.Instance.InternalWrite(this, buffer, ref offset);
 }
Beispiel #10
0
 public override void Write(BaseSubCommand60 value, Span <byte> buffer, ref int offset)
 {
     Sub60LobbySoccerBallMoveEventPayload_Serializer.Instance.InternalWrite(this, buffer, ref offset);
 }
Beispiel #11
0
 public override void Write(BaseSubCommand60 value, Span <byte> buffer, ref int offset)
 {
     Sub60ClientZoneTeleportingEventCommand_Serializer.Instance.InternalWrite(this, buffer, ref offset);
 }
 public override void Write(BaseSubCommand60 value, Span <byte> buffer, ref int offset)
 {
     Sub60PickupItemFromGroundCommand_Serializer.Instance.InternalWrite(this, buffer, ref offset);
 }
 public override void Write(BaseSubCommand60 value, Span <byte> buffer, ref int offset)
 {
     Sub60PlayerPhotonChairSitEventCommand_Serializer.Instance.InternalWrite(this, buffer, ref offset);
 }
Beispiel #14
0
 public override void Write(BaseSubCommand60 value, Span <byte> buffer, ref int offset)
 {
     Sub60PlayerAttackStepOneCommand_Serializer.Instance.InternalWrite(this, buffer, ref offset);
 }
 public override void Write(BaseSubCommand60 value, Span <byte> buffer, ref int offset)
 {
     Sub60CreateInventoryItemCommand_Serializer.Instance.InternalWrite(this, buffer, ref offset);
 }
Beispiel #16
0
 public override void Write(BaseSubCommand60 value, Span <byte> buffer, ref int offset)
 {
     Sub60ObjectDamageRecievedCommand_Serializer.Instance.InternalWrite(this, buffer, ref offset);
 }