Пример #1
0
        public unsafe SRT0TextureNode FindOrCreateEntry(string name, int index, bool ind)
        {
            foreach (SRT0EntryNode t in Children)
            {
                if (t.Name == name)
                {
                    int value = 0;
                    foreach (SRT0TextureNode x in t.Children)
                    {
                        if (x._textureIndex == value && x._indirect == ind)
                        {
                            return(x);
                        }
                    }

                    SRT0TextureNode child = new SRT0TextureNode(index, ind);
                    t.AddChild(child);
                    return(child);
                }
            }
            SRT0EntryNode entry = new SRT0EntryNode();

            entry.Name = name;
            AddChild(entry);
            SRT0TextureNode tex = new SRT0TextureNode(index, ind);

            entry.AddChild(tex);
            return(tex);
        }
Пример #2
0
        internal unsafe SRT0TextureNode FindOrCreateEntry(string name, int index)
        {
            foreach (SRT0EntryNode t in Children)
            {
                if (t.Name == name)
                {
                    foreach (SRT0TextureNode n in t.Children)
                    {
                        if (n.TextureIndex == index)
                        {
                            return(n);
                        }
                    }
                    SRT0TextureNode child = new SRT0TextureNode(index)
                    {
                        _numFrames = _numFrames
                    };
                    t.AddChild(child);
                    return(child);
                }
            }
            SRT0EntryNode entry = new SRT0EntryNode();

            entry.Name = name;
            AddChild(entry);
            SRT0TextureNode tex = new SRT0TextureNode(index)
            {
                _numFrames = _numFrames
            };

            entry.AddChild(tex);
            return(tex);
        }
Пример #3
0
        public unsafe SRT0TextureNode FindOrCreateEntry(string name, int index, bool ind)
        {
            foreach (SRT0EntryNode t in Children)
                if (t.Name == name)
                {
                    int value = 0;
                    foreach (SRT0TextureNode x in t.Children)
                        if (x._textureIndex == value && x._indirect == ind)
                            return x;

                    SRT0TextureNode child = new SRT0TextureNode(index, ind) { _numFrames = _numFrames };
                    t.AddChild(child);
                    return child;
                }
            SRT0EntryNode entry = new SRT0EntryNode();
            entry.Name = name;
            AddChild(entry);
            SRT0TextureNode tex = new SRT0TextureNode(index, ind) { _numFrames = _numFrames };
            entry.AddChild(tex);
            return tex;
        }