mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-04-27 23:35:28 +00:00
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:
parent
e4664d1727
commit
e58f1d5987
29 changed files with 1138 additions and 154 deletions
|
|
@ -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 _ => ;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue