public DropItemToContainer(uint uid, ItemContainerGC container, ushort x, ushort y) : base(Build(uid, container, x, y)) { this.uid = uid; this.container = container; this.x = x; this.y = y; }
public static byte[] Build(uint uid, ItemContainerGC container, ushort x, ushort y) { byte[] buffer = new byte[0x11]; buffer[0] = 0x18; buffer[1] = (byte) uid; buffer[2] = (byte) (uid >> 8); buffer[3] = (byte) (uid >> 0x10); buffer[4] = (byte) (uid >> 0x18); buffer[5] = (byte) x; buffer[9] = (byte) y; buffer[13] = (byte) container; return buffer; }
// Methods public DropItemToContainer(byte[] data) : base(data) { this.uid = BitConverter.ToUInt32(data, 1); this.x = data[5]; this.y = data[9]; this.container = (ItemContainerGC) data[13]; }