Source code for awpy.nav

"""Module to parse and represent navigation mesh files.

Reference: https://github.com/ValveResourceFormat/ValveResourceFormat/tree/master/ValveResourceFormat/NavMesh
"""

import json
import math
import struct
from enum import Enum
from pathlib import Path
from typing import Any, BinaryIO, Literal, Self, TypedDict

import networkx as nx

from awpy.vector import Vector3, Vector3Dict


[docs] class DynamicAttributeFlags(int): """A custom integer class for dynamic attribute flags.""" def __new__(cls, value: Any) -> "DynamicAttributeFlags": # noqa: ANN401 """Creates a new DynamicAttributeFlags instance. Args: value: The integer value for the flags. Returns: A new DynamicAttributeFlags instance. """ return super().__new__(cls, value)