aboutsummaryrefslogtreecommitdiff
path: root/source/models
diff options
context:
space:
mode:
authorIndrajith K L2020-06-29 03:14:32 +0530
committerIndrajith K L2020-06-29 03:14:32 +0530
commitffd6706cb02fdd37f5f461a37287a5860e69fb6c (patch)
treee5a4b81cc73b710e4ef4312b192021072da000a4 /source/models
downloaddungeon-client-ffd6706cb02fdd37f5f461a37287a5860e69fb6c.tar.gz
dungeon-client-ffd6706cb02fdd37f5f461a37287a5860e69fb6c.tar.bz2
dungeon-client-ffd6706cb02fdd37f5f461a37287a5860e69fb6c.zip
:tada: Initial Commit
* Integrates Colyseus Server * Implements Basic Player movement * Player Remove/Update Events
Diffstat (limited to 'source/models')
-rw-r--r--source/models/Player.hx21
-rw-r--r--source/models/State.hx15
2 files changed, 36 insertions, 0 deletions
diff --git a/source/models/Player.hx b/source/models/Player.hx
new file mode 100644
index 0000000..1de9b3a
--- /dev/null
+++ b/source/models/Player.hx
@@ -0,0 +1,21 @@
+//
+// THIS FILE HAS BEEN GENERATED AUTOMATICALLY
+// DO NOT CHANGE IT MANUALLY UNLESS YOU KNOW WHAT YOU'RE DOING
+//
+// GENERATED USING @colyseus/schema 0.5.39
+//
+package models;
+
+import io.colyseus.serializer.schema.Schema;
+
+class Player extends Schema
+{
+ @:type("number")
+ public var x:Dynamic = 0;
+
+ @:type("number")
+ public var y:Dynamic = 0;
+
+ @:type("string")
+ public var name:String = "";
+}
diff --git a/source/models/State.hx b/source/models/State.hx
new file mode 100644
index 0000000..4f89d35
--- /dev/null
+++ b/source/models/State.hx
@@ -0,0 +1,15 @@
+//
+// THIS FILE HAS BEEN GENERATED AUTOMATICALLY
+// DO NOT CHANGE IT MANUALLY UNLESS YOU KNOW WHAT YOU'RE DOING
+//
+// GENERATED USING @colyseus/schema 0.5.39
+//
+package models;
+
+import io.colyseus.serializer.schema.Schema;
+
+class State extends Schema
+{
+ @:type("map", Player)
+ public var players:MapSchema<Player> = new MapSchema<Player>();
+}