protected internal override void OnRebuild(VoidPtr address, int length, bool force) { if (Children.Count > 1) { PAT0TextureTable *table = (PAT0TextureTable *)address; table->_textureCount = (short)Children.Count; table->_frameScale = 1.0f / (Children[Children.Count - 1] as PAT0TextureEntryNode).key; table->_pad = 0; PAT0Texture *entry = table->Textures; foreach (PAT0TextureEntryNode n in Children) { n.Rebuild(entry++, PAT0Texture.Size, true); } } }
public override void OnRebuild(VoidPtr address, int length, bool force) { if (Children.Count > 1) { PAT0TextureTable *table = (PAT0TextureTable *)address; table->_textureCount = (short)Children.Count; float f = (Children[Children.Count - 1] as PAT0TextureEntryNode)._frame; table->_frameScale = f == 0 ? 0 : 1.0f / f; table->_pad = 0; PAT0Texture *entry = table->Textures; foreach (PAT0TextureEntryNode n in Children) { n.Rebuild(entry++, PAT0Texture.Size, true); } } }