Adds models for the random bitsbyte data received in packet 13 - player update
This commit is contained in:
parent
51fadf406f
commit
db84a9fc8f
7 changed files with 360 additions and 34 deletions
32
TShockAPI/Models/PlayerUpdate/MiscDataSet3.cs
Normal file
32
TShockAPI/Models/PlayerUpdate/MiscDataSet3.cs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Terraria;
|
||||
|
||||
namespace TShockAPI.Models.PlayerUpdate
|
||||
{
|
||||
/// <summary>
|
||||
/// Model for the third set of misc data sent with a player update packet
|
||||
/// </summary>
|
||||
public struct MiscDataSet3
|
||||
{
|
||||
public BitsByte bitsbyte;
|
||||
|
||||
public bool IsSleeping
|
||||
{
|
||||
get => bitsbyte[0];
|
||||
set => bitsbyte[0] = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a new instance of MiscDataSet3 with the given backing BitsByte
|
||||
/// </summary>
|
||||
/// <param name="bitsbyte"></param>
|
||||
public MiscDataSet3(BitsByte bitsbyte)
|
||||
{
|
||||
this.bitsbyte = bitsbyte;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue