def _readTeleportMarkerSection(xmlCtx, section, markerID, varRef): subSec = _xml.getSubsection(xmlCtx, section, 'world') worldData = { 'offset': _xml.readVector3(xmlCtx, subSec, 'offset'), 'yaw': _xml.readFloat(xmlCtx, subSec, 'yaw') } return chapter.AreaMarker(markerID, varRef, {}, {}, worldData, {})
def _readAreaMarkerSection(xmlCtx, section, markerID, varRef): return chapter.AreaMarker(markerID, varRef, _readModelMarkerSection(xmlCtx, section), _readModelMarkerSection(xmlCtx, section, name='ground'), _readWorldMarkerSection(xmlCtx, section), createInd=section.readBool( 'create-indicator', True))
def _readAreaMarkerSection(xmlCtx, section, markerID, varRef): subSec = _xml.getSubsection(xmlCtx, section, 'minimap') minimapData = { 'entry-name': _xml.readString(xmlCtx, subSec, 'entry-name'), 'entry-type': _xml.readString(xmlCtx, subSec, 'entry-type') } return chapter.AreaMarker(markerID, varRef, _readModelMarkerSection(xmlCtx, section), _readModelMarkerSection(xmlCtx, section, name='ground'), _readWorldMarkerSection(xmlCtx, section), minimapData, createInd=section.readBool( 'create-indicator', True))