Skip to content

Instantly share code, notes, and snippets.

View freaktechnik's full-sized avatar
🚞
I like trains

Martin Giger freaktechnik

🚞
I like trains
View GitHub Profile
@freaktechnik
freaktechnik / bot.land.d.ts
Last active October 13, 2019 18:26 — forked from mizzao/bot.land.d.ts
Bot Land TypeScript bindings
declare const IS_OWNED_BY_ME = 256;
declare const ALLY = 0;
declare const ENEMY = 1;
declare const CHIP = 1024;
declare const CPU = 512;
declare const BOT = 8;
declare const ANYTHING;
declare enum EntityMatchFlags {
IS_OWNED_BY_ME = 256,
//declare a promise to handle this treatement
//would be nice to call the same code many times
//use it as a function
Task.spawn(function* () {
//global variable
let id=[];
let db = yield Sqlite.openConnection({ path: myPath});
try {
let row = yield db.execute("SELECT id FROM 'plates'");