Created
July 23, 2020 03:36
-
-
Save RoxDevvv/c26c69028ecfcf9de8d1cb119a813705 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Player extends Schema { } | |
schema.defineTypes(Player, { | |
UUID: "string", | |
PAWNS: "string", | |
PicUrl: "string", | |
NickName: "string", | |
}); | |
class board extends Schema { | |
} | |
schema.defineTypes(board, { | |
PawnID: "string", | |
Safe: "boolean", | |
StartPoint: "string", | |
}); | |
class plusboard extends Schema { | |
} | |
schema.defineTypes(plusboard, { | |
PID: "string", | |
PawnID: "string" | |
}); | |
class LudoStates extends Schema { | |
constructor() { | |
super(); | |
this.players = new MapSchema(); | |
this.Board = new ArraySchema(); | |
this.PlusBoard = new ArraySchema(); | |
} | |
} | |
//init | |
schema.defineTypes(LudoStates, { | |
players: { map: Player }, | |
Board: [board], | |
PlusBoard: [plusboard], | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment