public PAT0TextureNode(PAT0Flags flags, int index) { _texFlags = flags; _hasTex = _texFlags.HasFlag(PAT0Flags.HasTexture); _hasPlt = _texFlags.HasFlag(PAT0Flags.HasPalette); _textureIndex = index; _name = "Texture" + _textureIndex; }
public override void OnPopulate() { if (!_texFlags.HasFlag(PAT0Flags.FixedTexture)) { PAT0Texture *current = Header->Textures; for (int i = 0; i < textureCount; i++, current++) { new PAT0TextureEntryNode().Initialize(this, new DataSource(current, PAT0Texture.Size)); } } }