Skip to content

Commit 3e68541

Browse files
isHarryhK0lb3
authored andcommitted
chore(math): apply dataclass decorator
1 parent 5ed5321 commit 3e68541

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

UnityPy/math/Color.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
from dataclasses import dataclass
12
from .Vector4 import Vector4
23

34

5+
@dataclass
46
class Color:
57
R: float
68
G: float

UnityPy/math/Matrix4x4.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
from dataclasses import dataclass
12
from typing import MutableSequence, Sequence, Union
23
from .Vector3 import Vector3
34

45

6+
@dataclass
57
class Matrix4x4:
68
M: MutableSequence[float]
79

UnityPy/math/Quaternion.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
from dataclasses import dataclass
2+
3+
4+
@dataclass
15
class Quaternion:
26
X: float
37
Y: float

UnityPy/math/Rectangle.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
from dataclasses import dataclass
2+
3+
4+
@dataclass
15
class Rectangle:
26
height: int
37
width: int

0 commit comments

Comments
 (0)