This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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'"); |