ArisuFxPy 1.25.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- arisufxpy-1.25.4/ArisuFxPy/ArisuFxPyBoost.pyi +47 -0
- arisufxpy-1.25.4/ArisuFxPy/__init__.py +11 -0
- arisufxpy-1.25.4/ArisuFxPy/__main__.py +4 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/ClassIDTypeToClassMap.py +1090 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/Object.py +59 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/PPtr.py +112 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/UnknownObject.py +33 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/__init__.py +28 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/generated.py +12350 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/AudioClip.py +18 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/AudioClip.pyi +30 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/GameObject.py +33 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/GameObject.pyi +26 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Mesh.py +13 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Mesh.pyi +58 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Renderer.py +12 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Renderer.pyi +8 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Shader.py +12 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Shader.pyi +24 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Sprite.py +12 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Sprite.pyi +35 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Texture2D.py +83 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Texture2D.pyi +44 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Texture2DArray.py +48 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/Texture2DArray.pyi +29 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/legacy_patch/__init__.py +19 -0
- arisufxpy-1.25.4/ArisuFxPy/classes/math.py +124 -0
- arisufxpy-1.25.4/ArisuFxPy/cli/__init__.py +28 -0
- arisufxpy-1.25.4/ArisuFxPy/cli/update_tpk.py +29 -0
- arisufxpy-1.25.4/ArisuFxPy/config.py +40 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/Audio.py +56 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/BuildTarget.py +40 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/BundleFile.py +26 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/ClassIDType.py +373 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/ExtendableEnum.py +19 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/FileType.py +9 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/GfxPrimitiveType.py +10 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/GraphicsFormat.py +277 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/MeshTopology.py +10 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/PassType.py +7 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/SerializedPropertyType.py +9 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/ShaderCompilerPlatform.py +26 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/ShaderGpuProgramType.py +36 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/SpriteMeshType.py +6 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/SpritePackingMode.py +6 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/SpritePackingRotation.py +9 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/TextureDimension.py +13 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/TextureFormat.py +82 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/VertexFormat.py +80 -0
- arisufxpy-1.25.4/ArisuFxPy/enums/__init__.py +39 -0
- arisufxpy-1.25.4/ArisuFxPy/environment.py +373 -0
- arisufxpy-1.25.4/ArisuFxPy/exceptions.py +14 -0
- arisufxpy-1.25.4/ArisuFxPy/export/AudioClipConverter.py +49 -0
- arisufxpy-1.25.4/ArisuFxPy/export/MeshExporter.py +56 -0
- arisufxpy-1.25.4/ArisuFxPy/export/MeshRendererExporter.py +189 -0
- arisufxpy-1.25.4/ArisuFxPy/export/ShaderConverter.py +689 -0
- arisufxpy-1.25.4/ArisuFxPy/export/SpriteHelper.py +349 -0
- arisufxpy-1.25.4/ArisuFxPy/export/Texture2DConverter.py +580 -0
- arisufxpy-1.25.4/ArisuFxPy/export/__init__.py +15 -0
- arisufxpy-1.25.4/ArisuFxPy/files/BundleFile.py +543 -0
- arisufxpy-1.25.4/ArisuFxPy/files/File.py +152 -0
- arisufxpy-1.25.4/ArisuFxPy/files/ObjectReader.py +355 -0
- arisufxpy-1.25.4/ArisuFxPy/files/SerializedFile.py +579 -0
- arisufxpy-1.25.4/ArisuFxPy/files/WebFile.py +112 -0
- arisufxpy-1.25.4/ArisuFxPy/files/__init__.py +14 -0
- arisufxpy-1.25.4/ArisuFxPy/helpers/ArchiveStorageManager.py +146 -0
- arisufxpy-1.25.4/ArisuFxPy/helpers/CompressionHelper.py +281 -0
- arisufxpy-1.25.4/ArisuFxPy/helpers/ContainerHelper.py +85 -0
- arisufxpy-1.25.4/ArisuFxPy/helpers/ImportHelper.py +173 -0
- arisufxpy-1.25.4/ArisuFxPy/helpers/MeshHelper.py +714 -0
- arisufxpy-1.25.4/ArisuFxPy/helpers/PackedBitVector.py +143 -0
- arisufxpy-1.25.4/ArisuFxPy/helpers/ResourceReader.py +38 -0
- arisufxpy-1.25.4/ArisuFxPy/helpers/TextureSwizzler.py +127 -0
- arisufxpy-1.25.4/ArisuFxPy/helpers/Tpk.py +84 -0
- arisufxpy-1.25.4/ArisuFxPy/helpers/TypeTreeGenerator.py +78 -0
- arisufxpy-1.25.4/ArisuFxPy/helpers/TypeTreeHelper.py +444 -0
- arisufxpy-1.25.4/ArisuFxPy/helpers/TypeTreeNode.py +402 -0
- arisufxpy-1.25.4/ArisuFxPy/helpers/UnityVersion.py +146 -0
- arisufxpy-1.25.4/ArisuFxPy/helpers/__init__.py +10 -0
- arisufxpy-1.25.4/ArisuFxPy/py.typed +0 -0
- arisufxpy-1.25.4/ArisuFxPy/resources/__init__.py +0 -0
- arisufxpy-1.25.4/ArisuFxPy/resources/lzma.tpk +0 -0
- arisufxpy-1.25.4/ArisuFxPy/streams/EndianBinaryReader.py +349 -0
- arisufxpy-1.25.4/ArisuFxPy/streams/EndianBinaryWriter.py +133 -0
- arisufxpy-1.25.4/ArisuFxPy/streams/__init__.py +7 -0
- arisufxpy-1.25.4/ArisuFxPy/tools/TpkClassGenerator.py +376 -0
- arisufxpy-1.25.4/ArisuFxPy/tools/__init__.py +0 -0
- arisufxpy-1.25.4/ArisuFxPy/tools/extractor.py +368 -0
- arisufxpy-1.25.4/ArisuFxPy.egg-info/PKG-INFO +648 -0
- arisufxpy-1.25.4/ArisuFxPy.egg-info/SOURCES.txt +112 -0
- arisufxpy-1.25.4/ArisuFxPy.egg-info/dependency_links.txt +1 -0
- arisufxpy-1.25.4/ArisuFxPy.egg-info/entry_points.txt +2 -0
- arisufxpy-1.25.4/ArisuFxPy.egg-info/requires.txt +26 -0
- arisufxpy-1.25.4/ArisuFxPy.egg-info/top_level.txt +1 -0
- arisufxpy-1.25.4/ArisuFxPyBoost/ArchiveStorageDecryptor.cpp +90 -0
- arisufxpy-1.25.4/ArisuFxPyBoost/ArchiveStorageDecryptor.hpp +5 -0
- arisufxpy-1.25.4/ArisuFxPyBoost/ArisuFxPyBoost.cpp +47 -0
- arisufxpy-1.25.4/ArisuFxPyBoost/Mesh.cpp +159 -0
- arisufxpy-1.25.4/ArisuFxPyBoost/Mesh.hpp +5 -0
- arisufxpy-1.25.4/ArisuFxPyBoost/TypeTreeHelper.cpp +1283 -0
- arisufxpy-1.25.4/ArisuFxPyBoost/TypeTreeHelper.hpp +55 -0
- arisufxpy-1.25.4/ArisuFxPyBoost/swap.hpp +78 -0
- arisufxpy-1.25.4/LICENSE +22 -0
- arisufxpy-1.25.4/PKG-INFO +648 -0
- arisufxpy-1.25.4/README.md +575 -0
- arisufxpy-1.25.4/pyproject.toml +91 -0
- arisufxpy-1.25.4/setup.cfg +4 -0
- arisufxpy-1.25.4/setup.py +128 -0
- arisufxpy-1.25.4/tests/test_UnityVersion.py +74 -0
- arisufxpy-1.25.4/tests/test_astc.py +65 -0
- arisufxpy-1.25.4/tests/test_extractor.py +26 -0
- arisufxpy-1.25.4/tests/test_main.py +126 -0
- arisufxpy-1.25.4/tests/test_mesh_helper.py +47 -0
- arisufxpy-1.25.4/tests/test_typetree.py +208 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, Any, List, Literal, Optional, Tuple, Union
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
from .classes import Object
|
|
7
|
+
from .files.SerializedFile import SerializedFile
|
|
8
|
+
|
|
9
|
+
def unpack_vertexdata(
|
|
10
|
+
data: Union[bytes, bytearray],
|
|
11
|
+
component_byte_size: int,
|
|
12
|
+
vertex_count: int,
|
|
13
|
+
stream_offset: int,
|
|
14
|
+
stream_stride: int,
|
|
15
|
+
channel_offset: int,
|
|
16
|
+
channel_dimension: int,
|
|
17
|
+
swap: bool,
|
|
18
|
+
) -> bytes: ...
|
|
19
|
+
def read_typetree(
|
|
20
|
+
data: Union[bytes, bytearray],
|
|
21
|
+
node: TypeTreeNode,
|
|
22
|
+
endian: Literal["<", ">"],
|
|
23
|
+
as_dict: bool,
|
|
24
|
+
assetsfile: SerializedFile,
|
|
25
|
+
classes: dict,
|
|
26
|
+
) -> Tuple[Union[dict[str, Any], Object], int]: ...
|
|
27
|
+
|
|
28
|
+
class TypeTreeNode:
|
|
29
|
+
m_Level: int
|
|
30
|
+
m_Type: str
|
|
31
|
+
m_Name: str
|
|
32
|
+
m_ByteSize: int
|
|
33
|
+
m_Version: int
|
|
34
|
+
m_Children: List[TypeTreeNode]
|
|
35
|
+
m_TypeFlags: Optional[int] = None
|
|
36
|
+
m_VariableCount: Optional[int] = None
|
|
37
|
+
m_Index: Optional[int] = None
|
|
38
|
+
m_MetaFlag: Optional[int] = None
|
|
39
|
+
m_RefTypeHash: Optional[int] = None
|
|
40
|
+
_clean_name: str
|
|
41
|
+
|
|
42
|
+
def decrypt_block(
|
|
43
|
+
index_bytes: Union[bytes, bytearray],
|
|
44
|
+
substitute_bytes: Union[bytes, bytearray],
|
|
45
|
+
data: Union[bytes, bytearray],
|
|
46
|
+
index: int,
|
|
47
|
+
) -> bytes: ...
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
__version__ = "1.25.4"
|
|
2
|
+
|
|
3
|
+
from .environment import Environment as Environment
|
|
4
|
+
from .helpers.ArchiveStorageManager import (
|
|
5
|
+
set_assetbundle_decrypt_key as set_assetbundle_decrypt_key,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
load = Environment
|
|
9
|
+
|
|
10
|
+
# backward compatibility
|
|
11
|
+
AssetsManager = Environment
|