using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using skyscraper5.Skyscraper.Plugins;

namespace skyscraper5.T2MI.Packets
{
	[SkyscraperPlugin]
	[T2MiPacketType(0x30)]
    internal class _0x30_Null : T2MiPacket
    {
        public _0x30_Null(T2MIHeader header, byte[] buffer) : base(header, buffer)
        {
            if (buffer.Length != 3)
            {
                Valid = false;
                return;
            }

            FefIndex = buffer[0];
            S1Field = (buffer[2] & 0x70) >> 3;
            S2Field = (buffer[2] & 0x0f);
            Valid = true;
        }

        public int S2Field { get; private set; }

        public int S1Field { get; private set; }

        public byte FefIndex { get; private set; }
    }
}
