File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -764,6 +764,7 @@ interface LookAtResultWithPos {
764
764
exit ?: any ;
765
765
source ?: Source ;
766
766
mineral ?: Mineral ;
767
+ resource ?: Resource ;
767
768
}
768
769
interface LookAtResult {
769
770
type : string ;
@@ -776,6 +777,7 @@ interface LookAtResult {
776
777
structure ?: Structure ;
777
778
terrain ?: string ;
778
779
mineral ?: Mineral ;
780
+ resource ?: Resource ;
779
781
}
780
782
interface LookAtResultMatrix {
781
783
[ coord : number ] : LookAtResultMatrix | LookAtResult [ ] ;
@@ -806,7 +808,7 @@ interface FindPathOpts {
806
808
* @param costMatrix The current CostMatrix
807
809
* @returns The new CostMatrix to use
808
810
*/
809
- costCallback ?( roomName : string , costMatrix : CostMatrix ) : CostMatrix ;
811
+ costCallback ?( roomName : string , costMatrix : CostMatrix ) : boolean | CostMatrix ;
810
812
/**
811
813
* An array of the room's objects or RoomPosition objects which should be treated as walkable tiles during the search. This option
812
814
* cannot be used when the new PathFinder is enabled (use costCallback option instead).
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ interface LookAtResultWithPos {
58
58
exit ?: any ;
59
59
source ?: Source ;
60
60
mineral ?: Mineral ;
61
+ resource ? : Resource ;
61
62
}
62
63
interface LookAtResult {
63
64
type : string ;
@@ -70,6 +71,7 @@ interface LookAtResult {
70
71
structure ?: Structure ;
71
72
terrain ?: string ;
72
73
mineral ?: Mineral ;
74
+ resource ?: Resource ;
73
75
}
74
76
75
77
@@ -106,7 +108,7 @@ interface FindPathOpts {
106
108
* @param costMatrix The current CostMatrix
107
109
* @returns The new CostMatrix to use
108
110
*/
109
- costCallback ?( roomName : string , costMatrix : CostMatrix ) : CostMatrix ;
111
+ costCallback ?( roomName : string , costMatrix : CostMatrix ) : boolean | CostMatrix ;
110
112
111
113
/**
112
114
* An array of the room's objects or RoomPosition objects which should be treated as walkable tiles during the search. This option
You can’t perform that action at this time.
0 commit comments