added type to IPerph
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user