@memoraike/tstl-pipewrench-utils
v1.0.0-alpha
Published
Support instanceof method from Project Zomboid lua. Example:
Downloads
1
Readme
Support instanceof method from Project Zomboid lua. Example:
import { DrainableComboItem } from '@asledgehammer/pipewrench';
function predicateNotFullPetrol(item: InventoryItem) {
return item.hasTag('Petrol') && instanceOf(item, DrainableComboItem) && item.getUsedDelta() < 1;
}
Result to:
function predicateNotFullPetrol(item)
return item:hasTag("Petrol") and instanceof(item, "DrainableComboItem") and item:getUsedDelta() < 1
end
Build
npm install
npm tsc
npm version <version number>
npm publish