aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/Server/Character.scala
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-04 21:38:50 +0200
committerJoel Kronqvist <joel.kronqvist@iki.fi>2024-11-04 22:03:40 +0200
commitae82027a9bd4e75582f9499d4006b18c29a4129c (patch)
tree92d23012158647d31fbdc0e6cdae7854ee773cbc /src/main/scala/Server/Character.scala
downloadscalevalapokalypsi-ae82027a9bd4e75582f9499d4006b18c29a4129c.tar.gz
scalevalapokalypsi-ae82027a9bd4e75582f9499d4006b18c29a4129c.zip
Added basic TCP networking for the server.
The client's networking is still very experimental and the actual protocol is not yet specified for either side.
Diffstat (limited to 'src/main/scala/Server/Character.scala')
-rw-r--r--src/main/scala/Server/Character.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/scala/Server/Character.scala b/src/main/scala/Server/Character.scala
new file mode 100644
index 0000000..082f152
--- /dev/null
+++ b/src/main/scala/Server/Character.scala
@@ -0,0 +1,7 @@
+package o1game.Server
+
+import scala.collection.mutable.Buffer
+
+class GameCharacter(val name: String, initialItems: Iterable[String]):
+ private val items: Buffer[String] = Buffer.from(items) // TODO: Item class
+ // TODO: A lot of other things too