@bettergi/types 0.1.6 → 0.1.7
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.
- package/package.json +1 -1
- package/types/BetterGenshinImpact/GameTask/AutoDomain/AutoDomainTask.d.ts +3 -2
- package/types/BetterGenshinImpact/GameTask/AutoFight/AutoFightTask.d.ts +3 -2
- package/types/BetterGenshinImpact/GameTask/Model/Area/Converter/INodeConverter.d.ts +8 -1
- package/types/BetterGenshinImpact/GameTask/Model/Area/Region.d.ts +3 -2
- package/types/System/Collections/IEqualityComparer.d.ts +11 -0
- package/types/System/Collections/IStructuralComparable.d.ts +11 -0
- package/types/System/Collections/IStructuralEquatable.d.ts +13 -0
- package/types/System/DateTime.d.ts +1 -0
- package/types/System/DateTimeOffset.d.ts +1 -0
- package/types/System/Exception.d.ts +1 -0
- package/types/System/IAsyncDisposable.d.ts +1 -0
- package/types/System/IComparable.d.ts +9 -0
- package/types/System/IEquatable.d.ts +1 -0
- package/types/System/Runtime/CompilerServices/ITuple.d.ts +11 -0
- package/types/System/Threading/CancellationToken.d.ts +1 -0
- package/types/System/Threading/CancellationTokenRegistration.d.ts +1 -0
- package/types/System/Threading/CancellationTokenSource.d.ts +1 -0
- package/types/System/Threading/ITimer.d.ts +1 -0
- package/types/System/Threading/Tasks/ValueTask.d.ts +1 -0
- package/types/System/Threading/WaitHandle.d.ts +1 -0
- package/types/System/TimeProvider.d.ts +1 -0
- package/types/System/TimeSpan.d.ts +1 -0
- package/types/System/Tuple.d.ts +184 -0
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "../../../System/Collections/Generic/List";
|
|
2
2
|
import "../../../System/Threading/CancellationToken";
|
|
3
|
+
import "../../../System/Tuple";
|
|
3
4
|
import "../../GameTask/Model/Area/ImageRegion";
|
|
4
5
|
import "../../GameTask/Model/Area/Region";
|
|
5
6
|
import "../ISoloTask";
|
|
@@ -20,7 +21,7 @@ declare global {
|
|
|
20
21
|
static pressUseResin(
|
|
21
22
|
ra: BetterGenshinImpact.GameTask.Model.Area.ImageRegion,
|
|
22
23
|
resinName: string
|
|
23
|
-
):
|
|
24
|
+
): System.Tuple2<boolean, number>;
|
|
24
25
|
|
|
25
26
|
/**
|
|
26
27
|
* 点击使用树脂
|
|
@@ -30,7 +31,7 @@ declare global {
|
|
|
30
31
|
static pressUseResin(
|
|
31
32
|
regionList: System.Collections.Generic.List<BetterGenshinImpact.GameTask.Model.Area.Region>,
|
|
32
33
|
resinName: string
|
|
33
|
-
):
|
|
34
|
+
): System.Tuple2<boolean, number>;
|
|
34
35
|
|
|
35
36
|
constructor(taskParam: BetterGenshinImpact.GameTask.AutoDomain.AutoDomainParam);
|
|
36
37
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "../../../System/Collections/Generic/List";
|
|
2
2
|
import "../../../System/Threading/CancellationToken";
|
|
3
|
+
import "../../../System/Tuple";
|
|
3
4
|
import "../../GameTask/Model/Area/ImageRegion";
|
|
4
5
|
import "../../GameTask/Model/Area/Region";
|
|
5
6
|
import "../ISoloTask";
|
|
@@ -20,7 +21,7 @@ declare global {
|
|
|
20
21
|
static pressUseResin(
|
|
21
22
|
ra: BetterGenshinImpact.GameTask.Model.Area.ImageRegion,
|
|
22
23
|
resinName: string
|
|
23
|
-
):
|
|
24
|
+
): System.Tuple2<boolean, number>;
|
|
24
25
|
|
|
25
26
|
/**
|
|
26
27
|
* 点击使用树脂
|
|
@@ -30,7 +31,7 @@ declare global {
|
|
|
30
31
|
static pressUseResin(
|
|
31
32
|
regionList: System.Collections.Generic.List<BetterGenshinImpact.GameTask.Model.Area.Region>,
|
|
32
33
|
resinName: string
|
|
33
|
-
):
|
|
34
|
+
): System.Tuple2<boolean, number>;
|
|
34
35
|
|
|
35
36
|
constructor(taskParam: BetterGenshinImpact.GameTask.AutoFight.AutoFightParam);
|
|
36
37
|
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
import "../../../../../System/Tuple";
|
|
2
|
+
|
|
1
3
|
declare global {
|
|
2
4
|
namespace BetterGenshinImpact.GameTask.Model.Area.Converter {
|
|
3
5
|
interface INodeConverter {
|
|
4
|
-
toPrev(
|
|
6
|
+
toPrev(
|
|
7
|
+
x: number,
|
|
8
|
+
y: number,
|
|
9
|
+
w: number,
|
|
10
|
+
h: number
|
|
11
|
+
): System.Tuple4<number, number, number, number>;
|
|
5
12
|
}
|
|
6
13
|
}
|
|
7
14
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Rect } from "mirada/dist/src/types/opencv";
|
|
2
2
|
import "../../../../System/Drawing/Pen";
|
|
3
3
|
import "../../../../System/IDisposable";
|
|
4
|
+
import "../../../../System/Tuple";
|
|
4
5
|
import "../../../GameTask/Model/Area/Converter/INodeConverter";
|
|
5
6
|
import "../../../GameTask/Model/Area/ImageRegion";
|
|
6
7
|
import "../../../View/Drawable/LineDrawable";
|
|
@@ -165,10 +166,10 @@ declare global {
|
|
|
165
166
|
convertPositionToGameCaptureRegion(x: number, y: number, w: number, h: number): Rect;
|
|
166
167
|
|
|
167
168
|
/** 将指定区域的截图转换成位置元组 */
|
|
168
|
-
convertPositionToGameCaptureRegion(x: number, y: number):
|
|
169
|
+
convertPositionToGameCaptureRegion(x: number, y: number): System.Tuple2<number, number>;
|
|
169
170
|
|
|
170
171
|
/** 将指定桌面区域的截图转换成位置元组 */
|
|
171
|
-
convertPositionToDesktopRegion(x: number, y: number):
|
|
172
|
+
convertPositionToDesktopRegion(x: number, y: number): System.Tuple2<number, number>;
|
|
172
173
|
|
|
173
174
|
/** 生成一个新的矩形类型的区域 */
|
|
174
175
|
toRect(): Rect;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./IEqualityComparer";
|
|
2
|
+
|
|
3
|
+
declare global {
|
|
4
|
+
namespace System.Collections {
|
|
5
|
+
interface IStructuralEquatable {
|
|
6
|
+
equals(other: any, comparer: System.Collections.IEqualityComparer): boolean;
|
|
7
|
+
|
|
8
|
+
getHashCode(comparer: System.Collections.IEqualityComparer): number;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import "./Collections/IStructuralComparable";
|
|
2
|
+
import "./Collections/IStructuralEquatable";
|
|
3
|
+
import "./IComparable";
|
|
4
|
+
import "./Runtime/CompilerServices/ITuple";
|
|
5
|
+
|
|
6
|
+
declare global {
|
|
7
|
+
// TODO: 未实现ITupleInternal接口,待补充(如果有必要)
|
|
8
|
+
namespace System {
|
|
9
|
+
class Tuple1<T1>
|
|
10
|
+
implements
|
|
11
|
+
System.Collections.IStructuralEquatable,
|
|
12
|
+
System.Collections.IStructuralComparable,
|
|
13
|
+
System.IComparable
|
|
14
|
+
{
|
|
15
|
+
item1: T1;
|
|
16
|
+
|
|
17
|
+
constructor(item1: T1);
|
|
18
|
+
|
|
19
|
+
equals(other: any): boolean;
|
|
20
|
+
|
|
21
|
+
compareTo(other: any): number;
|
|
22
|
+
|
|
23
|
+
getHashCode(comparer: System.Collections.IEqualityComparer): number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
class Tuple2<T1, T2>
|
|
27
|
+
implements
|
|
28
|
+
System.Collections.IStructuralEquatable,
|
|
29
|
+
System.Collections.IStructuralComparable,
|
|
30
|
+
System.IComparable
|
|
31
|
+
{
|
|
32
|
+
item1: T1;
|
|
33
|
+
item2: T2;
|
|
34
|
+
|
|
35
|
+
constructor(item1: T1, item2: T2);
|
|
36
|
+
|
|
37
|
+
equals(other: any): boolean;
|
|
38
|
+
|
|
39
|
+
compareTo(other: any): number;
|
|
40
|
+
|
|
41
|
+
getHashCode(comparer: System.Collections.IEqualityComparer): number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
class Tuple3<T1, T2, T3>
|
|
45
|
+
implements
|
|
46
|
+
System.Collections.IStructuralEquatable,
|
|
47
|
+
System.Collections.IStructuralComparable,
|
|
48
|
+
System.IComparable
|
|
49
|
+
{
|
|
50
|
+
item1: T1;
|
|
51
|
+
item2: T2;
|
|
52
|
+
item3: T3;
|
|
53
|
+
|
|
54
|
+
constructor(item1: T1, item2: T2, item3: T3);
|
|
55
|
+
|
|
56
|
+
equals(other: any): boolean;
|
|
57
|
+
|
|
58
|
+
compareTo(other: any): number;
|
|
59
|
+
|
|
60
|
+
getHashCode(comparer: System.Collections.IEqualityComparer): number;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
class Tuple4<T1, T2, T3, T4>
|
|
64
|
+
implements
|
|
65
|
+
System.Collections.IStructuralEquatable,
|
|
66
|
+
System.Collections.IStructuralComparable,
|
|
67
|
+
System.IComparable
|
|
68
|
+
{
|
|
69
|
+
item1: T1;
|
|
70
|
+
item2: T2;
|
|
71
|
+
item3: T3;
|
|
72
|
+
item4: T4;
|
|
73
|
+
|
|
74
|
+
constructor(item1: T1, item2: T2, item3: T3, item4: T4);
|
|
75
|
+
|
|
76
|
+
equals(other: any): boolean;
|
|
77
|
+
|
|
78
|
+
compareTo(other: any): number;
|
|
79
|
+
|
|
80
|
+
getHashCode(comparer: System.Collections.IEqualityComparer): number;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
class Tuple5<T1, T2, T3, T4, T5>
|
|
84
|
+
implements
|
|
85
|
+
System.Collections.IStructuralEquatable,
|
|
86
|
+
System.Collections.IStructuralComparable,
|
|
87
|
+
System.IComparable
|
|
88
|
+
{
|
|
89
|
+
item1: T1;
|
|
90
|
+
item2: T2;
|
|
91
|
+
item3: T3;
|
|
92
|
+
item4: T4;
|
|
93
|
+
item5: T5;
|
|
94
|
+
|
|
95
|
+
constructor(item1: T1, item2: T2, item3: T3, item4: T4, item5: T5);
|
|
96
|
+
|
|
97
|
+
equals(other: any): boolean;
|
|
98
|
+
|
|
99
|
+
compareTo(other: any): number;
|
|
100
|
+
|
|
101
|
+
getHashCode(comparer: System.Collections.IEqualityComparer): number;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
class Tuple6<T1, T2, T3, T4, T5, T6>
|
|
105
|
+
implements
|
|
106
|
+
System.Collections.IStructuralEquatable,
|
|
107
|
+
System.Collections.IStructuralComparable,
|
|
108
|
+
System.IComparable
|
|
109
|
+
{
|
|
110
|
+
item1: T1;
|
|
111
|
+
item2: T2;
|
|
112
|
+
item3: T3;
|
|
113
|
+
item4: T4;
|
|
114
|
+
item5: T5;
|
|
115
|
+
item6: T6;
|
|
116
|
+
|
|
117
|
+
constructor(item1: T1, item2: T2, item3: T3, item4: T4, item5: T5, item6: T6);
|
|
118
|
+
|
|
119
|
+
equals(other: any): boolean;
|
|
120
|
+
|
|
121
|
+
compareTo(other: any): number;
|
|
122
|
+
|
|
123
|
+
getHashCode(comparer: System.Collections.IEqualityComparer): number;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
class Tuple7<T1, T2, T3, T4, T5, T6, T7>
|
|
127
|
+
implements
|
|
128
|
+
System.Collections.IStructuralEquatable,
|
|
129
|
+
System.Collections.IStructuralComparable,
|
|
130
|
+
System.IComparable
|
|
131
|
+
{
|
|
132
|
+
item1: T1;
|
|
133
|
+
item2: T2;
|
|
134
|
+
item3: T3;
|
|
135
|
+
item4: T4;
|
|
136
|
+
item5: T5;
|
|
137
|
+
item6: T6;
|
|
138
|
+
item7: T7;
|
|
139
|
+
|
|
140
|
+
constructor(item1: T1, item2: T2, item3: T3, item4: T4, item5: T5, item6: T6, item7: T7);
|
|
141
|
+
|
|
142
|
+
equals(other: any): boolean;
|
|
143
|
+
|
|
144
|
+
compareTo(other: any): number;
|
|
145
|
+
|
|
146
|
+
getHashCode(comparer: System.Collections.IEqualityComparer): number;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
class Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>
|
|
150
|
+
implements
|
|
151
|
+
System.Collections.IStructuralEquatable,
|
|
152
|
+
System.Collections.IStructuralComparable,
|
|
153
|
+
System.IComparable
|
|
154
|
+
{
|
|
155
|
+
item1: T1;
|
|
156
|
+
item2: T2;
|
|
157
|
+
item3: T3;
|
|
158
|
+
item4: T4;
|
|
159
|
+
item5: T5;
|
|
160
|
+
item6: T6;
|
|
161
|
+
item7: T7;
|
|
162
|
+
item8: T8;
|
|
163
|
+
|
|
164
|
+
constructor(
|
|
165
|
+
item1: T1,
|
|
166
|
+
item2: T2,
|
|
167
|
+
item3: T3,
|
|
168
|
+
item4: T4,
|
|
169
|
+
item5: T5,
|
|
170
|
+
item6: T6,
|
|
171
|
+
item7: T7,
|
|
172
|
+
item8: T8
|
|
173
|
+
);
|
|
174
|
+
|
|
175
|
+
equals(other: any): boolean;
|
|
176
|
+
|
|
177
|
+
compareTo(other: any): number;
|
|
178
|
+
|
|
179
|
+
getHashCode(comparer: System.Collections.IEqualityComparer): number;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export {};
|