コード例 #1
0
        public void AttachNodes()
        {
            SCN0Node      node    = (SCN0Node)Parent.Parent;
            SCN0GroupNode g       = node.GetFolder <SCN0LightNode>();
            bint *        strings = Data->StringOffsets;

            if (g != null && !_replaced)
            {
                for (int i = 0; i < Data->_numLights && i < 8; i++)
                {
                    _lights[i] = g.FindChild(new String((sbyte *)strings + strings[i]), false) as SCN0LightNode;
                }
            }
            g = node.GetFolder <SCN0AmbientLightNode>();
            if (g != null && Data->_ambNameOffset != 0 && !_replaced)
            {
                _ambient = g.FindChild(Data->AmbientString, false) as SCN0AmbientLightNode;
            }
        }