mirror of
https://github.com/SCToolsfactory/SCJMapper-V2.git
synced 2024-11-18 09:26:03 +00:00
68d72cab6b
- fix #40 added Tab entry in Ctrl. context menu - fix - try to fix Win10 scaling issues (hidden assignment area) - fix - profile tree color indication also applied when re-reading defaultProfile - improvement - enumerates up to 12 devices now (though not tested as I don't have 12 ..) - add - use of SCA 2.2 provided defaultProfile (new location and format) - add - indication of the used defaultProfile - add - built in defaultProfile updated to SCA 2.2 - Doc update
52 lines
1.7 KiB
C#
52 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace SCJMapper_V2.CryXMLlib
|
|
{
|
|
/// <summary>
|
|
/// Derived work from CryEngine: XMLBinaryHeaders.h:
|
|
/// CryEngine Source File.
|
|
/// Copyright (C), Crytek Studios, 2001-2006.
|
|
/// -------------------------------------------------------------------------
|
|
/// File name: xml.h
|
|
/// Created: 21/04/2006 by Timur.
|
|
/// Description:
|
|
/// -------------------------------------------------------------------------
|
|
/// </summary>
|
|
///
|
|
|
|
|
|
/// <summary>
|
|
/// Memory context of the binary XML file
|
|
/// </summary>
|
|
internal class CryXmlBinContext // CBinaryXmlData
|
|
{
|
|
~CryXmlBinContext( )
|
|
{
|
|
pBinaryNodes = null; // TODO check later for proper dealloc
|
|
}
|
|
|
|
public CryXMLNode[] pNodes = null; // gets a copy of all Node entries
|
|
public CryXMLAttribute[] pAttributes= null; // gets a copy of all Attribute entries
|
|
public CryXMLNodeIndex[] pChildIndices= null; // gets a copy of all Note relations
|
|
public byte[] pStringData = null; // gets a copy of the string data
|
|
public UInt32 pStringDataLength = 0; // length of the string data
|
|
|
|
/// <summary>
|
|
/// Returns an XMLString from the stringData area
|
|
/// </summary>
|
|
/// <param name="sOffset">The start offset of the string to return</param>
|
|
/// <returns>The string</returns>
|
|
public XmlString _string( UInt32 sOffset )
|
|
{
|
|
return Conversions.ToString( pStringData.SliceE( sOffset, pStringDataLength ) );
|
|
}
|
|
|
|
public List<CryXmlBinNode> pBinaryNodes= null; // list of binary nodes - one to one with the real nodes
|
|
}
|
|
|
|
|
|
}
|