public override byte[] Pack() { DynamicOutputBuffer buffer = DynamicOutputBuffer.Get(Code); buffer.WriteUInt16(FlagUpdates.Count); foreach (FlagUpdateData f in FlagUpdates) { buffer.WriteFlagUpdateData(f, HideType); } return(buffer.GetMessageBuffer()); }
public override byte[] Pack() { DynamicOutputBuffer buffer = DynamicOutputBuffer.Get(Code); if (IsServer()) { buffer.WriteByte(PlayerID); buffer.WriteFlagUpdateData(FlagData, false); } else { buffer.WriteUInt16(FlagData.FlagID); } return(buffer.GetMessageBuffer()); }
public override byte[] Pack() { DynamicOutputBuffer buffer = DynamicOutputBuffer.Get(Code); if (IsServer()) { buffer.WriteByte(PlayerID); buffer.WriteFlagUpdateData(Data, true); } else { buffer.WriteVector3F(Postion); } return(buffer.GetMessageBuffer()); }