from io import BufferedReader, BytesIO from struct import * from typing import Set, Tuple, TypeVar, Union, TYPE_CHECKING from UE4Parse import Logger from UE4Parse.Exceptions.Exceptions import ParserException from UE4Parse.Objects.EUEVersion import EUEVersion from UE4Parse.Objects.FName import FName, DummyFName from UE4Parse.Objects.FPackageIndex import FPackageIndex if TYPE_CHECKING: from UE4Parse.Objects.FGuid import FGuid from UE4Parse.PackageReader import LegacyPackageReader, IoPackageReader from UE4Parse.provider.MappingProvider import MappingProvider logging = Logger.get_logger(__name__) T = TypeVar("T") class BinaryStream: NameMap: list PackageReader: Union['LegacyPackageReader', 'IoPackageReader'] version: int game: EUEVersion = None fake_size: int ubulk_stream: object bulk_offset: int = -1 size = 0 mappings: 'MappingProvider'
from UE4Parse.PropertyTagData.DelegateProperty import DelegateProperty from UE4Parse.PropertyTagData.DoubleProperty import DoubleProperty from UE4Parse.PropertyTagData.EnumProperty import EnumProperty from UE4Parse.PropertyTagData.FloatProperty import FloatProperty from UE4Parse.PropertyTagData.IntProperty import * from UE4Parse.PropertyTagData.LazyObjectProperty import LazyObjectProperty from UE4Parse.PropertyTagData.MapProperty import MapProperty from UE4Parse.PropertyTagData.NameProperty import NameProperty from UE4Parse.PropertyTagData.ObjectProperty import ObjectProperty from UE4Parse.PropertyTagData.SetProperty import SetProperty from UE4Parse.PropertyTagData.SoftObjectProperty import SoftObjectProperty from UE4Parse.PropertyTagData.StrProperty import StrProperty from UE4Parse.PropertyTagData.StructProperty import StructProperty from UE4Parse.PropertyTagData.TextProperty import TextProperty logger = Logger.get_logger(__name__) class ReadType(IntEnum): """ `NORMAL` = `0`\n `MAP` = `1`\n `ARRAY` = `2`\n `ZERO` = `3`\n """ NORMAL = 0 MAP = auto() ARRAY = auto() ZERO = auto()