Example #1
0
    def get_as_section():
        """Gets global prefab information represented with SectionData structure class.
        :return: packed globals as section data
        :rtype: io_scs_tools.internals.structure.SectionData
        """

        section = _SectionData("Global")
        section.props.append(("NodeCount", Node.get_global_node_count()))
        section.props.append(("TerrainPointCount", Node.get_global_tp_count()))
        section.props.append(
            ("TerrainPointVariantCount", Node.get_global_tp_variant_count()))
        section.props.append(("NavCurveCount", Curve.get_global_curve_count()))
        section.props.append(("SignCount", Sign.get_global_sign_count()))
        section.props.append(
            ("SpawnPointCount", SpawnPoint.get_global_spawn_point_count()))
        section.props.append(
            ("SemaphoreCount", Semaphore.get_global_semaphore_count()))
        section.props.append(
            ("MapPointCount", MapPoint.get_global_map_point_count()))
        section.props.append(("TriggerPointCount",
                              TriggerPoint.get_global_trigger_point_count()))
        section.props.append(("IntersectionCount",
                              Intersection.get_global_intersection_count()))

        return section
Example #2
0
    def get_as_section():
        """Gets global prefab information represented with SectionData structure class.
        :return: packed globals as section data
        :rtype: io_scs_tools.internals.structure.SectionData
        """

        section = _SectionData("Global")
        section.props.append(("NodeCount", Node.get_global_node_count()))
        section.props.append(("TerrainPointCount", Node.get_global_tp_count()))
        section.props.append(("TerrainPointVariantCount", Node.get_global_tp_variant_count()))
        section.props.append(("NavCurveCount", Curve.get_global_curve_count()))
        section.props.append(("SignCount", Sign.get_global_sign_count()))
        section.props.append(("SpawnPointCount", SpawnPoint.get_global_spawn_point_count()))
        section.props.append(("SemaphoreCount", Semaphore.get_global_semaphore_count()))
        section.props.append(("MapPointCount", MapPoint.get_global_map_point_count()))
        section.props.append(("TriggerPointCount", TriggerPoint.get_global_trigger_point_count()))
        section.props.append(("IntersectionCount", Intersection.get_global_intersection_count()))

        return section