@siredvin/typed-peripheral-turtlematic 0.1.0 → 0.3.0
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/automata/end.d.ts +13 -0
- package/automata/end.lua +11 -0
- package/automata/husbandry.d.ts +18 -0
- package/automata/husbandry.lua +11 -0
- package/automata/mason.d.ts +7 -0
- package/automata/mason.lua +23 -0
- package/automata/protective.d.ts +12 -0
- package/automata/protective.lua +11 -0
- package/automata/regular.d.ts +9 -0
- package/automata/regular.lua +11 -0
- package/automata/smithing.d.ts +8 -0
- package/automata/smithing.lua +23 -0
- package/mics/chatter.d.ts +14 -0
- package/mics/chatter.lua +30 -0
- package/mics/lava_bucket.d.ts +10 -0
- package/mics/lava_bucket.lua +21 -0
- package/mics/mimic.d.ts +10 -0
- package/mics/mimic.lua +7 -0
- package/mics/piston.d.ts +14 -0
- package/mics/piston.lua +29 -0
- package/mics/sticky_piston.d.ts +16 -0
- package/mics/sticky_piston.lua +32 -0
- package/package.json +5 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IPeripheralProvider } from "@siredvin/typed-peripheral-base";
|
|
2
|
+
import { FuelApi } from "@siredvin/typed-peripheral-api/fuel";
|
|
3
|
+
import { InteractionApi } from "@siredvin/typed-peripheral-api/interaction";
|
|
4
|
+
import { ConfigurationAPI } from "@siredvin/typed-peripheral-api/configuration";
|
|
5
|
+
import { OperationApi } from "@siredvin/typed-peripheral-api/operations";
|
|
6
|
+
import { LookApi } from "@siredvin/typed-peripheral-api/look";
|
|
7
|
+
import { CaptureAPI } from "@siredvin/typed-peripheral-api/capture";
|
|
8
|
+
import { SuckAPI } from "@siredvin/typed-peripheral-api/suck";
|
|
9
|
+
import { WarpAPI } from "@siredvin/typed-peripheral-api/warp";
|
|
10
|
+
/** @noSelf **/
|
|
11
|
+
export declare interface EndAutomata extends FuelApi, InteractionApi, ConfigurationAPI<object>, OperationApi, LookApi, CaptureAPI, SuckAPI, WarpAPI {
|
|
12
|
+
}
|
|
13
|
+
export declare const endAutomataProvider: IPeripheralProvider<EndAutomata>;
|
package/automata/end.lua
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__New = ____lualib.__TS__New
|
|
3
|
+
local ____exports = {}
|
|
4
|
+
local ____typed_2Dperipheral_2Dbase = require("@siredvin/typed-peripheral-base")
|
|
5
|
+
local IPeripheralProvider = ____typed_2Dperipheral_2Dbase.IPeripheralProvider
|
|
6
|
+
____exports.endAutomataProvider = __TS__New(
|
|
7
|
+
IPeripheralProvider,
|
|
8
|
+
"endAutomata",
|
|
9
|
+
function() return nil end
|
|
10
|
+
)
|
|
11
|
+
return ____exports
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IPeripheralProvider } from "@siredvin/typed-peripheral-base";
|
|
2
|
+
import { FuelApi, FuelAPIConfiguration } from "@siredvin/typed-peripheral-api/fuel";
|
|
3
|
+
import { InteractionApi } from "@siredvin/typed-peripheral-api/interaction";
|
|
4
|
+
import { ConfigurationAPI } from "@siredvin/typed-peripheral-api/configuration";
|
|
5
|
+
import { OperationApi } from "@siredvin/typed-peripheral-api/operations";
|
|
6
|
+
import { LookApi } from "@siredvin/typed-peripheral-api/look";
|
|
7
|
+
import { CaptureAPI } from "@siredvin/typed-peripheral-api/capture";
|
|
8
|
+
export declare interface HusbandryConfiguration extends FuelAPIConfiguration {
|
|
9
|
+
maxHusbandryPoints: number;
|
|
10
|
+
simulationGrowCost: number;
|
|
11
|
+
}
|
|
12
|
+
/** @noSelf **/
|
|
13
|
+
export declare interface HusbandryAutomata extends FuelApi, InteractionApi, ConfigurationAPI<HusbandryConfiguration>, OperationApi, LookApi, CaptureAPI {
|
|
14
|
+
harvest(direction?: "up" | "down"): Result;
|
|
15
|
+
getHusbandryPoints(): number;
|
|
16
|
+
simulateGrow(): Result;
|
|
17
|
+
}
|
|
18
|
+
export declare const husbandryAutomataProvider: IPeripheralProvider<HusbandryAutomata>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__New = ____lualib.__TS__New
|
|
3
|
+
local ____exports = {}
|
|
4
|
+
local ____typed_2Dperipheral_2Dbase = require("@siredvin/typed-peripheral-base")
|
|
5
|
+
local IPeripheralProvider = ____typed_2Dperipheral_2Dbase.IPeripheralProvider
|
|
6
|
+
____exports.husbandryAutomataProvider = __TS__New(
|
|
7
|
+
IPeripheralProvider,
|
|
8
|
+
"husbandryAutomata",
|
|
9
|
+
function() return nil end
|
|
10
|
+
)
|
|
11
|
+
return ____exports
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IPeripheralProvider } from "@siredvin/typed-peripheral-base";
|
|
2
|
+
import { FuelApi } from "@siredvin/typed-peripheral-api/fuel";
|
|
3
|
+
/** @noSelf **/
|
|
4
|
+
export declare interface MasonAutomata extends FuelApi {
|
|
5
|
+
chisel(mode: "block", target: string, direction?: Direction): Result;
|
|
6
|
+
}
|
|
7
|
+
export declare const masonProvider: IPeripheralProvider<MasonAutomata>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
5
|
+
local ____exports = {}
|
|
6
|
+
local ____typed_2Dperipheral_2Dbase = require("@siredvin/typed-peripheral-base")
|
|
7
|
+
local IPeripheralProvider = ____typed_2Dperipheral_2Dbase.IPeripheralProvider
|
|
8
|
+
local ____fuel = require("@siredvin/typed-peripheral-api/fuel")
|
|
9
|
+
local DummyFuelApi = ____fuel.DummyFuelApi
|
|
10
|
+
---
|
|
11
|
+
-- @noSelf *
|
|
12
|
+
local DummyMasonAutomata = __TS__Class()
|
|
13
|
+
DummyMasonAutomata.name = "DummyMasonAutomata"
|
|
14
|
+
__TS__ClassExtends(DummyMasonAutomata, DummyFuelApi)
|
|
15
|
+
function DummyMasonAutomata.prototype.chisel(mode, target, direction)
|
|
16
|
+
return true, nil
|
|
17
|
+
end
|
|
18
|
+
____exports.masonProvider = __TS__New(
|
|
19
|
+
IPeripheralProvider,
|
|
20
|
+
"masonAutomata",
|
|
21
|
+
function() return __TS__New(DummyMasonAutomata) end
|
|
22
|
+
)
|
|
23
|
+
return ____exports
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IPeripheralProvider } from "@siredvin/typed-peripheral-base";
|
|
2
|
+
import { FuelApi } from "@siredvin/typed-peripheral-api/fuel";
|
|
3
|
+
import { InteractionApi } from "@siredvin/typed-peripheral-api/interaction";
|
|
4
|
+
import { ConfigurationAPI } from "@siredvin/typed-peripheral-api/configuration";
|
|
5
|
+
import { CaptureAPI } from "@siredvin/typed-peripheral-api/capture";
|
|
6
|
+
import { OperationApi } from "@siredvin/typed-peripheral-api/operations";
|
|
7
|
+
import { LookApi } from "@siredvin/typed-peripheral-api/look";
|
|
8
|
+
import { SuckAPI } from "@siredvin/typed-peripheral-api/suck";
|
|
9
|
+
/** @noSelf **/
|
|
10
|
+
export declare interface ProtectiveAutomata extends FuelApi, InteractionApi, ConfigurationAPI<object>, CaptureAPI, OperationApi, LookApi, SuckAPI {
|
|
11
|
+
}
|
|
12
|
+
export declare const protectiveProvider: IPeripheralProvider<ProtectiveAutomata>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__New = ____lualib.__TS__New
|
|
3
|
+
local ____exports = {}
|
|
4
|
+
local ____typed_2Dperipheral_2Dbase = require("@siredvin/typed-peripheral-base")
|
|
5
|
+
local IPeripheralProvider = ____typed_2Dperipheral_2Dbase.IPeripheralProvider
|
|
6
|
+
____exports.protectiveProvider = __TS__New(
|
|
7
|
+
IPeripheralProvider,
|
|
8
|
+
"protectiveAutomata",
|
|
9
|
+
function() return nil end
|
|
10
|
+
)
|
|
11
|
+
return ____exports
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IPeripheralProvider } from "@siredvin/typed-peripheral-base";
|
|
2
|
+
import { FuelApi } from "@siredvin/typed-peripheral-api/fuel";
|
|
3
|
+
import { InteractionApi } from "@siredvin/typed-peripheral-api/interaction";
|
|
4
|
+
import { ConfigurationAPI } from "@siredvin/typed-peripheral-api/configuration";
|
|
5
|
+
import { OperationApi } from "@siredvin/typed-peripheral-api/operations";
|
|
6
|
+
/** @noSelf **/
|
|
7
|
+
export declare interface Automata extends FuelApi, InteractionApi, ConfigurationAPI<object>, OperationApi {
|
|
8
|
+
}
|
|
9
|
+
export declare const automataProvider: IPeripheralProvider<Automata>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__New = ____lualib.__TS__New
|
|
3
|
+
local ____exports = {}
|
|
4
|
+
local ____typed_2Dperipheral_2Dbase = require("@siredvin/typed-peripheral-base")
|
|
5
|
+
local IPeripheralProvider = ____typed_2Dperipheral_2Dbase.IPeripheralProvider
|
|
6
|
+
____exports.automataProvider = __TS__New(
|
|
7
|
+
IPeripheralProvider,
|
|
8
|
+
"automata",
|
|
9
|
+
function() return nil end
|
|
10
|
+
)
|
|
11
|
+
return ____exports
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IPeripheralProvider } from "@siredvin/typed-peripheral-base";
|
|
2
|
+
import { FuelApi } from "@siredvin/typed-peripheral-api/fuel";
|
|
3
|
+
/** @noSelf **/
|
|
4
|
+
export declare interface SmithingAutomata extends FuelApi {
|
|
5
|
+
smelt(mode: "block", direction?: Direction): Result;
|
|
6
|
+
smelt(mode: "inventory", limit: number): Result;
|
|
7
|
+
}
|
|
8
|
+
export declare const smithingProvider: IPeripheralProvider<SmithingAutomata>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
+
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
|
+
local __TS__New = ____lualib.__TS__New
|
|
5
|
+
local ____exports = {}
|
|
6
|
+
local ____typed_2Dperipheral_2Dbase = require("@siredvin/typed-peripheral-base")
|
|
7
|
+
local IPeripheralProvider = ____typed_2Dperipheral_2Dbase.IPeripheralProvider
|
|
8
|
+
local ____fuel = require("@siredvin/typed-peripheral-api/fuel")
|
|
9
|
+
local DummyFuelApi = ____fuel.DummyFuelApi
|
|
10
|
+
---
|
|
11
|
+
-- @noSelf *
|
|
12
|
+
local DummySmithingAutomata = __TS__Class()
|
|
13
|
+
DummySmithingAutomata.name = "DummySmithingAutomata"
|
|
14
|
+
__TS__ClassExtends(DummySmithingAutomata, DummyFuelApi)
|
|
15
|
+
function DummySmithingAutomata.prototype.smelt(mode, limit)
|
|
16
|
+
return true, nil
|
|
17
|
+
end
|
|
18
|
+
____exports.smithingProvider = __TS__New(
|
|
19
|
+
IPeripheralProvider,
|
|
20
|
+
"smithingAutomata",
|
|
21
|
+
function() return __TS__New(DummySmithingAutomata) end
|
|
22
|
+
)
|
|
23
|
+
return ____exports
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IPeripheralProvider } from "@siredvin/typed-peripheral-base";
|
|
2
|
+
/** @noSelf **/
|
|
3
|
+
export interface Chatter extends IPeripheral {
|
|
4
|
+
getMessage(): string | null;
|
|
5
|
+
setMessage(text: string): void;
|
|
6
|
+
clearMessage(): void;
|
|
7
|
+
}
|
|
8
|
+
/** @noSelf **/
|
|
9
|
+
export declare class DummyChatter implements Chatter {
|
|
10
|
+
getMessage(): string | null;
|
|
11
|
+
setMessage(text: string): void;
|
|
12
|
+
clearMessage(): void;
|
|
13
|
+
}
|
|
14
|
+
export declare const chatterProvider: IPeripheralProvider<Chatter>;
|
package/mics/chatter.lua
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
+
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local ____exports = {}
|
|
5
|
+
local ____typed_2Dperipheral_2Dbase = require("@siredvin/typed-peripheral-base")
|
|
6
|
+
local IPeripheralProvider = ____typed_2Dperipheral_2Dbase.IPeripheralProvider
|
|
7
|
+
local DUMMY_MESSAGE = nil
|
|
8
|
+
---
|
|
9
|
+
-- @noSelf *
|
|
10
|
+
____exports.DummyChatter = __TS__Class()
|
|
11
|
+
local DummyChatter = ____exports.DummyChatter
|
|
12
|
+
DummyChatter.name = "DummyChatter"
|
|
13
|
+
function DummyChatter.prototype.____constructor(self)
|
|
14
|
+
end
|
|
15
|
+
function DummyChatter.prototype.getMessage()
|
|
16
|
+
return DUMMY_MESSAGE
|
|
17
|
+
end
|
|
18
|
+
function DummyChatter.prototype.setMessage(text)
|
|
19
|
+
DUMMY_MESSAGE = text
|
|
20
|
+
print("Setting message to chatter", DUMMY_MESSAGE)
|
|
21
|
+
end
|
|
22
|
+
function DummyChatter.prototype.clearMessage()
|
|
23
|
+
DUMMY_MESSAGE = nil
|
|
24
|
+
end
|
|
25
|
+
____exports.chatterProvider = __TS__New(
|
|
26
|
+
IPeripheralProvider,
|
|
27
|
+
"chatter",
|
|
28
|
+
function() return __TS__New(____exports.DummyChatter) end
|
|
29
|
+
)
|
|
30
|
+
return ____exports
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPeripheralProvider } from "@siredvin/typed-peripheral-base";
|
|
2
|
+
/** @noSelf **/
|
|
3
|
+
export interface LavaBucket extends IPeripheral {
|
|
4
|
+
void(): void;
|
|
5
|
+
}
|
|
6
|
+
/** @noSelf **/
|
|
7
|
+
export declare class DummyLavaBucket implements LavaBucket {
|
|
8
|
+
void(): void;
|
|
9
|
+
}
|
|
10
|
+
export declare const lavaBucketProvider: IPeripheralProvider<LavaBucket>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
+
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local ____exports = {}
|
|
5
|
+
local ____typed_2Dperipheral_2Dbase = require("@siredvin/typed-peripheral-base")
|
|
6
|
+
local IPeripheralProvider = ____typed_2Dperipheral_2Dbase.IPeripheralProvider
|
|
7
|
+
---
|
|
8
|
+
-- @noSelf *
|
|
9
|
+
____exports.DummyLavaBucket = __TS__Class()
|
|
10
|
+
local DummyLavaBucket = ____exports.DummyLavaBucket
|
|
11
|
+
DummyLavaBucket.name = "DummyLavaBucket"
|
|
12
|
+
function DummyLavaBucket.prototype.____constructor(self)
|
|
13
|
+
end
|
|
14
|
+
function DummyLavaBucket.prototype.void()
|
|
15
|
+
end
|
|
16
|
+
____exports.lavaBucketProvider = __TS__New(
|
|
17
|
+
IPeripheralProvider,
|
|
18
|
+
"lava_bucket",
|
|
19
|
+
function() return __TS__New(____exports.DummyLavaBucket) end
|
|
20
|
+
)
|
|
21
|
+
return ____exports
|
package/mics/mimic.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPeripheralProvider } from "@siredvin/typed-peripheral-base";
|
|
2
|
+
/** @noSelf **/
|
|
3
|
+
export interface Mimic extends IPeripheral {
|
|
4
|
+
reset(): any;
|
|
5
|
+
setTransformation(rlm: string): any;
|
|
6
|
+
getTransformation(): string;
|
|
7
|
+
setMimic(block: LuaTable, nbtData?: string): any;
|
|
8
|
+
getMimic(): LuaMultiReturn<[LuaTable | null, string | null]>;
|
|
9
|
+
}
|
|
10
|
+
export declare const mimicProvider: IPeripheralProvider<Mimic>;
|
package/mics/mimic.lua
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__New = ____lualib.__TS__New
|
|
3
|
+
local ____exports = {}
|
|
4
|
+
local ____typed_2Dperipheral_2Dbase = require("@siredvin/typed-peripheral-base")
|
|
5
|
+
local IPeripheralProvider = ____typed_2Dperipheral_2Dbase.IPeripheralProvider
|
|
6
|
+
____exports.mimicProvider = __TS__New(IPeripheralProvider, "mimic")
|
|
7
|
+
return ____exports
|
package/mics/piston.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IPeripheralProvider } from "@siredvin/typed-peripheral-base";
|
|
2
|
+
/** @noSelf **/
|
|
3
|
+
export interface Piston extends IPeripheral {
|
|
4
|
+
push(direction?: Direction): Result;
|
|
5
|
+
isSilent(): boolean;
|
|
6
|
+
setSilent(value: boolean): void;
|
|
7
|
+
}
|
|
8
|
+
/** @noSelf **/
|
|
9
|
+
export declare class DummyPiston implements Piston {
|
|
10
|
+
isSilent(): boolean;
|
|
11
|
+
setSilent(value: boolean): void;
|
|
12
|
+
push(direction?: Direction): Result;
|
|
13
|
+
}
|
|
14
|
+
export declare const pistonProvider: IPeripheralProvider<Piston>;
|
package/mics/piston.lua
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
+
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local ____exports = {}
|
|
5
|
+
local ____typed_2Dperipheral_2Dbase = require("@siredvin/typed-peripheral-base")
|
|
6
|
+
local IPeripheralProvider = ____typed_2Dperipheral_2Dbase.IPeripheralProvider
|
|
7
|
+
local IS_SILENT_GLOBAL = false
|
|
8
|
+
---
|
|
9
|
+
-- @noSelf *
|
|
10
|
+
____exports.DummyPiston = __TS__Class()
|
|
11
|
+
local DummyPiston = ____exports.DummyPiston
|
|
12
|
+
DummyPiston.name = "DummyPiston"
|
|
13
|
+
function DummyPiston.prototype.____constructor(self)
|
|
14
|
+
end
|
|
15
|
+
function DummyPiston.prototype.isSilent()
|
|
16
|
+
return IS_SILENT_GLOBAL
|
|
17
|
+
end
|
|
18
|
+
function DummyPiston.prototype.setSilent(value)
|
|
19
|
+
IS_SILENT_GLOBAL = value
|
|
20
|
+
end
|
|
21
|
+
function DummyPiston.prototype.push(direction)
|
|
22
|
+
return true, nil
|
|
23
|
+
end
|
|
24
|
+
____exports.pistonProvider = __TS__New(
|
|
25
|
+
IPeripheralProvider,
|
|
26
|
+
"piston",
|
|
27
|
+
function() return __TS__New(____exports.DummyPiston) end
|
|
28
|
+
)
|
|
29
|
+
return ____exports
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IPeripheralProvider } from "@siredvin/typed-peripheral-base";
|
|
2
|
+
/** @noSelf **/
|
|
3
|
+
export interface StickyPiston extends IPeripheral {
|
|
4
|
+
pull(direction?: Direction): Result;
|
|
5
|
+
push(direction?: Direction): Result;
|
|
6
|
+
isSilent(): boolean;
|
|
7
|
+
setSilent(value: boolean): void;
|
|
8
|
+
}
|
|
9
|
+
/** @noSelf **/
|
|
10
|
+
export declare class DummyStickyPiston implements StickyPiston {
|
|
11
|
+
isSilent(): boolean;
|
|
12
|
+
setSilent(value: boolean): void;
|
|
13
|
+
push(direction?: Direction): Result;
|
|
14
|
+
pull(direction?: Direction): Result;
|
|
15
|
+
}
|
|
16
|
+
export declare const stickyPistonProvider: IPeripheralProvider<StickyPiston>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__Class = ____lualib.__TS__Class
|
|
3
|
+
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local ____exports = {}
|
|
5
|
+
local ____typed_2Dperipheral_2Dbase = require("@siredvin/typed-peripheral-base")
|
|
6
|
+
local IPeripheralProvider = ____typed_2Dperipheral_2Dbase.IPeripheralProvider
|
|
7
|
+
local IS_SILENT_GLOBAL = false
|
|
8
|
+
---
|
|
9
|
+
-- @noSelf *
|
|
10
|
+
____exports.DummyStickyPiston = __TS__Class()
|
|
11
|
+
local DummyStickyPiston = ____exports.DummyStickyPiston
|
|
12
|
+
DummyStickyPiston.name = "DummyStickyPiston"
|
|
13
|
+
function DummyStickyPiston.prototype.____constructor(self)
|
|
14
|
+
end
|
|
15
|
+
function DummyStickyPiston.prototype.isSilent()
|
|
16
|
+
return IS_SILENT_GLOBAL
|
|
17
|
+
end
|
|
18
|
+
function DummyStickyPiston.prototype.setSilent(value)
|
|
19
|
+
IS_SILENT_GLOBAL = value
|
|
20
|
+
end
|
|
21
|
+
function DummyStickyPiston.prototype.push(direction)
|
|
22
|
+
return true, nil
|
|
23
|
+
end
|
|
24
|
+
function DummyStickyPiston.prototype.pull(direction)
|
|
25
|
+
return true, nil
|
|
26
|
+
end
|
|
27
|
+
____exports.stickyPistonProvider = __TS__New(
|
|
28
|
+
IPeripheralProvider,
|
|
29
|
+
"stickyPiston",
|
|
30
|
+
function() return __TS__New(____exports.DummyStickyPiston) end
|
|
31
|
+
)
|
|
32
|
+
return ____exports
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siredvin/typed-peripheral-turtlematic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Typed peripheral library for Turtlematic peripherals",
|
|
5
5
|
"files": [
|
|
6
|
-
"./*.ts",
|
|
7
|
-
"./*.lua"
|
|
6
|
+
"./*.d.ts",
|
|
7
|
+
"./*.lua",
|
|
8
|
+
"./**/*.d.ts",
|
|
9
|
+
"./**/*.lua"
|
|
8
10
|
],
|
|
9
11
|
"publishConfig": {
|
|
10
12
|
"access": "public"
|