modificada la logica de juego e interfaz para acomodarse a su objetivo real. llevado a un punto de al menos 3 jugadores simultaneos
This commit is contained in:
15
client/src/types/TokenInventory.ts
Normal file
15
client/src/types/TokenInventory.ts
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 3.0.42
|
||||
//
|
||||
|
||||
import { Schema, type, ArraySchema, MapSchema, SetSchema, DataChange } from '@colyseus/schema';
|
||||
|
||||
|
||||
export class TokenInventory extends Schema {
|
||||
@type("number") public turkey!: number;
|
||||
@type("number") public coffee!: number;
|
||||
@type("number") public corn!: number;
|
||||
}
|
||||
18
client/src/types/TradeOffer.ts
Normal file
18
client/src/types/TradeOffer.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// THIS FILE HAS BEEN GENERATED AUTOMATICALLY
|
||||
// DO NOT CHANGE IT MANUALLY UNLESS YOU KNOW WHAT YOU'RE DOING
|
||||
//
|
||||
// GENERATED USING @colyseus/schema 3.0.42
|
||||
//
|
||||
|
||||
import { Schema, type, ArraySchema, MapSchema, SetSchema, DataChange } from '@colyseus/schema';
|
||||
import { TokenInventory } from './TokenInventory'
|
||||
|
||||
export class TradeOffer extends Schema {
|
||||
@type("string") public id!: string;
|
||||
@type("string") public offererId!: string;
|
||||
@type("string") public targetId!: string;
|
||||
@type(TokenInventory) public offering: TokenInventory = new TokenInventory();
|
||||
@type(TokenInventory) public requesting: TokenInventory = new TokenInventory();
|
||||
@type("string") public status!: string;
|
||||
}
|
||||
Reference in New Issue
Block a user