ComputerSystem beta
Interface of @v12-engine/engine
ts
export interface ComputerSystem<C extends ComputerPlayer = ComputerPlayer> extends SystemThe system a computer player plays from: it is asked to think about once a second (every, in seconds), each seat at another tick of it, to spread the work; it is named for its seat (ai-<player>), which a save keeps what it remembers by
Members
computer
ts
readonly computer: C;The computer player this system runs
dispose
ts
dispose(): void;Lets go of its seat: the session's listeners, what the computer player holds. The world stays
player
ts
readonly player: PlayerId;The player it plays
session
ts
readonly session: LocalSession;The seat it plays through
timing
ts
timing(): ComputerTiming;Milliseconds its thinks took: the last, an average, the longest, and by module while the world profiles