From ffd6706cb02fdd37f5f461a37287a5860e69fb6c Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Mon, 29 Jun 2020 03:14:32 +0530 Subject: :tada: Initial Commit * Integrates Colyseus Server * Implements Basic Player movement * Player Remove/Update Events --- source/models/Player.hx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 source/models/Player.hx (limited to 'source/models/Player.hx') 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 = ""; +} -- cgit v1.2.3