added type to IPerph

This commit is contained in:
2023-06-26 19:05:48 +02:00
parent f124525d2d
commit 4dcc060e9a
8 changed files with 74 additions and 2 deletions

View File

@@ -74,6 +74,10 @@ class Modem implements INetworkInterface implements IPeripheral {
return this.addr;
}
public function getType():String {
return TYPE_NAME;
}
public function getBaseRoutingCost():Int {
if (this.native.isWireless()){
return 2; // Prefere messages over cable