forked from K0lb3/UnityPy
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathObjectReader.pyi
More file actions
99 lines (96 loc) · 4.38 KB
/
Copy pathObjectReader.pyi
File metadata and controls
99 lines (96 loc) · 4.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
from .. import classes as classes
from ..classes.Object import NodeHelper as NodeHelper
from ..enums import ClassIDType as ClassIDType
from ..exceptions import TypeTreeError as TypeTreeError
from ..files import SerializedFile as SerializedFile
from ..helpers import TypeTreeHelper as TypeTreeHelper
from ..helpers.Tpk import get_typetree_nodes as get_typetree_nodes
from ..streams import EndianBinaryReader as EndianBinaryReader, EndianBinaryWriter as EndianBinaryWriter
from _typeshed import Incomplete
from typing import Dict, List
from ..math import Quaternion, Vector2, Vector3, Vector4, Rectangle, Matrix4x4, Color
DEBUG_TYPETREES: bool
class ObjectReader:
byte_start: int
byte_size: int
type_id: int
class_id: int
type: ClassIDType
path_id: int
reader: EndianBinaryReader
assets_file: Incomplete
data: bytes
version: Incomplete
version2: Incomplete
platform: Incomplete
build_type: Incomplete
byte_start_offset: Incomplete
byte_header_offset: Incomplete
byte_base_offset: Incomplete
byte_size_offset: Incomplete
serialized_type: Incomplete
is_destroyed: Incomplete
stripped: Incomplete
def __init__(self, assets_file: SerializedFile, reader: EndianBinaryReader) -> None: ...
def write(self, header, writer: EndianBinaryWriter, data_writer: EndianBinaryWriter): ...
def set_raw_data(self, data) -> None: ...
@property
def container(self): ...
@property
def Position(self): ...
@property
def already_read(self) -> int: ...
def reset(self) -> None: ...
def read(self, return_typetree_on_error: bool = ...): ...
def get(self, key, default: Incomplete | None = ...): ...
def __getattr__(self, item: str): ...
def dump_typetree(self, nodes: list = ...) -> str: ...
def dump_typetree_structure(self) -> str: ...
def get_typetree_nodes(self, nodes: list = ...) -> list: ...
def read_typetree(self, nodes: list = ..., wrap: bool = ...) -> dict: ...
def save_typetree(self, tree: dict, nodes: list = ..., writer: EndianBinaryWriter = ...): ...
def get_raw_data(self) -> bytes: ...
def set_raw_data(self, data) -> None: ...
def read(self, *args) -> None: ...
def within_size(self): ...
def read_bytes(self, num) -> bytes: ...
def read_byte(self) -> int: ...
def read_u_byte(self) -> int: ...
def read_short(self) -> int: ...
def read_int(self) -> int: ...
def read_long(self) -> int: ...
def read_u_short(self) -> int: ...
def read_u_int(self) -> int: ...
def read_u_long(self) -> int: ...
def read_float(self) -> float: ...
def read_double(self) -> float: ...
def read_boolean(self) -> bool: ...
def read_string(self, size: Incomplete | None = ..., encoding: str = ...) -> str: ...
def read_string_to_null(self, max_length: int = ...) -> str: ...
def read_aligned_string(self) -> str: ...
def align_stream(self, alignment: int = ...) -> None: ...
def read_quaternion(self) -> Quaternion: ...
def read_vector2(self) -> Vector2: ...
def read_vector3(self) -> Vector3: ...
def read_vector4(self) -> Vector4: ...
def read_rectangle_f(self) -> Rectangle: ...
def read_color4(self) -> Color: ...
def read_byte_array(self) -> bytes: ...
def read_matrix(self) -> Matrix4x4: ...
def read_array(self, command, length: int) -> list: ...
def read_array_struct(self, param: str, length: int = ...) -> list: ...
def read_boolean_array(self, length: int = ...) -> List[bool]: ...
def read_u_short_array(self, length: int = ...) -> List[int]: ...
def read_short_array(self, length: int = ...) -> List[int]: ...
def read_int_array(self, length: int = ...) -> List[int]: ...
def read_u_int_array(self, length: int = ...) -> List[int]: ...
def read_u_int_array_array(self, length: int = ...) -> List[int]: ...
def read_long_array(self, length: int = ...) -> List[int]: ...
def read_u_long_array(self, length: int = ...) -> List[int]: ...
def read_float_array(self, length: int = ...) -> List[float]: ...
def read_string_array(self, length: int = ...) -> List[str]: ...
def read_vector2_array(self, length: int = ...) -> List[Vector2]: ...
def read_vector4_array(self, length: int = ...) -> List[Vector4]: ...
def read_matrix_array(self, length: int = ...) -> List[Matrix4x4]: ...
def real_offset(self) -> int: ...
def read_the_rest(self, reader: ObjectReader) -> bytes: ...