Breaking Up the BattleStream

I'm trying to break up the main BattleStream (from the simulator) using getPlayerStreams() to split it into p1, p2, p3, p4, spectator, and omniscient streams. I want to do that so I can hook up a RandomPlayerAI to p2. However, I still want all the data from the original BattleStream, like the original requests and updates, but separating the streams mutates the original stream and renders it insurable. I've tried just reading from the omniscient stream, but it doesn't include all that sorts of information.

My use case is just I want to have p2 hooked up to an AI but to still have my own frontend that handles the battle sim logic for player 1 / the rest of the battle. Any thoughts?
 

Users Who Are Viewing This Thread (Users: 1, Guests: 0)

Top