public override void OnPopulate() { MasqueradeEntryNode end = new MasqueradeEntryNode(true); for (int i = 0; i < Size / 2; i++) { new MasqueradeEntryNode().Initialize(this, new DataSource(Header[i, 2], 2)); MasqueradeEntryNode m = (MasqueradeEntryNode)Children[Children.Count - 1]; if (m.Color == end.Color && m.CostumeID == end.CostumeID) { RemoveChild(m); _changed = false; break; } } }
public override void OnRebuild(VoidPtr address, int length, bool force) { uint offset = 0x00; for (int i = 0; i < Children.Count; i++) { ResourceNode r = Children[i]; r.Rebuild(address + offset, 2, true); offset += 2; } MasqueradeEntryNode end = new MasqueradeEntryNode(true); end.Rebuild(address + offset, 2, true); offset += 2; while (offset < Size) { MasqueradeEntryNode blank = new MasqueradeEntryNode(false); blank.Rebuild(address + offset, 2, true); offset += 2; } }