initial commit

This commit is contained in:
2021-12-20 01:55:30 +01:00
commit bd790c1488
38 changed files with 2320 additions and 0 deletions

29
src/bin/NetTest.hx Normal file
View File

@@ -0,0 +1,29 @@
package bin;
import lib.TermIO;
import kernel.net.Net;
import kernel.ui.WindowManager;
import kernel.ui.WindowContext;
import lib.IUserProgramm;
class NetTest implements IUserProgramm {
private final windowContext:WindowContext = WindowManager.instance.createNewContext();
private final writer:TermIO;
public function new() {
writer = new TermIO(windowContext);
}
private function drawUI() {
var allNeighbors = Net.instance.getAllNeighbors();
for (neighbor in allNeighbors) {
writer.writeLn(""+neighbor,Green);
}
}
public function getName():String {
return "Network tester";
}
}