public FixedStruct(KaitaiStream p__io, KaitaiStruct p__parent = null, FixedStruct p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root ?? this; f_hdr = false; _read(); }
private void button1_Click(object sender, EventArgs e) { for (int i = 0; i < 2000; i++) { Entity entity = FixedStruct.ReadStruct <Entity>(pol.Handle, Pointer(i)); string name = Regex.Replace(entity.name, @"[^\w\.@-]", ""); if (entity.id != 0) { listBox1.Items.Add(entity.id.ToString("X") + " " + entity.serverId.ToString("X") + " " + name + " Bazaar:" + entity.hasBazaar.ToString()); } } }
public Header(KaitaiStream p__io, FixedStruct p__parent = null, FixedStruct p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root; _read(); }