🎉 Initial Commit
* Integrates Colyseus Server * Implements Basic Player movement * Player Remove/Update Events
This commit is contained in:
21
source/models/Player.hx
Normal file
21
source/models/Player.hx
Normal file
@@ -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 = "";
|
||||
}
|
||||
15
source/models/State.hx
Normal file
15
source/models/State.hx
Normal file
@@ -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>();
|
||||
}
|
||||
Reference in New Issue
Block a user