using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Terraria;
namespace TShockAPI.Models.PlayerUpdate
{
///
/// Model for the second set of misc data sent with a player update packet
///
public struct MiscDataSet2
{
///
/// Backing BitsByte field
///
public BitsByte bitsbyte;
///
/// Gets or Sets the keepTryingHoverUp flag on the backing field
///
public bool TryHoveringUp
{
get => bitsbyte[0];
set => bitsbyte[0] = value;
}
///
/// Gets or Sets the Void Vault Enabled flag on the backing field
///
public bool IsVoidVaultEnabled
{
get => bitsbyte[1];
set => bitsbyte[1] = value;
}
///
/// Gets or Sets the Sitting flag on the backing field
///
public bool IsSitting
{
get => bitsbyte[2];
set => bitsbyte[2] = value;
}
///
/// Gets or Sets the Downed DD2 Event (any difficulty) flag on the backing field
///
public bool HasDownedDd2Event
{
get => bitsbyte[3];
set => bitsbyte[3] = value;
}
///
/// Gets or Sets the Petting Animal flag on the backing field
///
public bool IsPettingAnimal
{
get => bitsbyte[4];
set => bitsbyte[4] = value;
}
///
/// Gets or Sets the Is Petted Animal Small flag on the backing field
///
public bool IsPettedAnimalSmall
{
get => bitsbyte[5];
set => bitsbyte[5] = value;
}
///
/// Gets or Sets the Can Return with Potion of Return flag on the backing field
///
public bool CanReturnWithPotionOfReturn
{
get => bitsbyte[6];
set => bitsbyte[6] = value;
}
///
/// Gets or Sets the keepTryingHoverDown flag on the backing field
///
public bool TryHoveringDown
{
get => bitsbyte[7];
set => bitsbyte[7] = value;
}
///
/// Constructs a new instance of MiscDataSet2 with the given backing BitsByte
///
///
public MiscDataSet2(BitsByte bitsbyte)
{
this.bitsbyte = bitsbyte;
}
}
}