示例#1
0
        public override void OnRebuild(VoidPtr address, int length, bool force)
        {
            SCN0CommonHeader *header = (SCN0CommonHeader *)address;

            if (Name == "<null>")
            {
                header->_nodeIndex = header->_realIndex = -1;
            }
            header->_length     = length;
            header->_scn0Offset = (int)((SCN0Node)Parent.Parent)._header - (int)address;
        }
示例#2
0
        protected internal override void OnRebuild(VoidPtr address, int length, bool force)
        {
            SCN0CommonHeader *header = (SCN0CommonHeader *)address;

            if (Name == "<null>")
            {
                header->_scn0Offset   = (int)scn0Addr - (int)address;
                header->_nodeIndex    = header->_realIndex = -1;
                header->_stringOffset = 0;
            }
            header->_length = _length = length;
        }
        protected internal virtual void PostProcess(VoidPtr scn0Address, VoidPtr dataAddress, StringTable stringTable)
        {
            SCN0CommonHeader *header = (SCN0CommonHeader *)dataAddress;

            header->_scn0Offset = (int)scn0Address - (int)dataAddress;
            header->_nodeIndex  = NodeIndex;
            header->_realIndex  = RealIndex;

            if (Name != "<null>")
            {
                header->ResourceStringAddress = stringTable[Name] + 4;
            }
            else
            {
                header->_stringOffset = 0;
            }
        }
示例#4
0
        protected internal virtual void PostProcess(VoidPtr scn0Address, VoidPtr dataAddress, StringTable stringTable)
        {
            SCN0CommonHeader *header = (SCN0CommonHeader *)dataAddress;

            header->_scn0Offset = (int)scn0Address - (int)dataAddress;
            if (Name != "<null>")
            {
                header->ResourceStringAddress = stringTable[Name] + 4;
                header->_nodeIndex            = ((SCN0GroupNode)Parent).UsedChildren.IndexOf(this);
                header->_realIndex            = Index;
            }
            else
            {
                header->_nodeIndex    = header->_realIndex = -1;
                header->_stringOffset = 0;
            }
        }
        public override void OnRebuild(VoidPtr address, int length, bool force)
        {
            SCN0CommonHeader *header = (SCN0CommonHeader *)address;

            header->_length = length;
        }
示例#6
0
        protected internal virtual void PostProcess(VoidPtr dataAddress, StringTable stringTable)
        {
            SCN0CommonHeader *header = (SCN0CommonHeader *)dataAddress;

            header->ResourceStringAddress = stringTable[Name] + 4;
        }