Amenity Auto-Repair (#594)

* working proof of concept for ntu request/flow

* ntu is now measured in Float rather than Int; adjusted the type declarations in ChatActor, as it was complaining

* added auto repair information for amenities; modified terminal working example to include periodic repair timer

* crude power state acknowledgement exchange between ntu silo and building, following by building and amenities; better management and control over auto-repair

* separated auto-repair from terminal control; resource silo publishes an appropriate power state message upon formal start-up

* various Damageble objects have been granted auto-repair; doors no longer report no event for intercepting unhandled messages

* documentation and comments; unit tests and integration tests for AmneityAutoRepair, ResourceSilo, and BuildingActor

* merge plus some fixes

* addition checks for auto-repairing cavern equipment and for auto-repairing un-owned equipment
This commit is contained in:
Fate-JH 2020-10-03 00:13:41 -04:00 committed by GitHub
parent e4664d1727
commit e58f1d5987
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 1138 additions and 154 deletions

View file

@ -23,7 +23,6 @@ import scodec.Attempt.{Failure, Successful}
import scodec.bits._
import scala.concurrent.duration.{DurationInt, FiniteDuration}
import scala.util.control.Breaks._
object Client {
Security.addProvider(new BouncyCastleProvider)
@ -153,6 +152,7 @@ class Client(username: String, password: String) {
socket.send(new DatagramPacket(payload, payload.length, host))
case (None, Some(ref)) =>
// ref ! Udp.Received(ByteString(payload), new InetSocketAddress(socket.getInetAddress, socket.getPort))
case _ => ;
}
}

View file

@ -14,7 +14,6 @@ import scala.collection.parallel.CollectionConverters._
import scala.io.{Codec, Source}
import scala.sys.process._
import scala.util.Using
import scala.util.control.Breaks._
case class Config(
outDir: String = System.getProperty("user.dir"),