branchspacechess/main/cicancel
112 Commits over 31 Days - 0.15cph!
Fixed Cmd serialisation bug ending up with incorrect player ID and causing cmd verification to fail
removed playerConnections from GameInstance, used Player stuff instead, removed from protobuf
Added a CommandQueue command finished event.
Some more refactoring.
AI works again (well, a bit)
Fixed a couple of local game bugs
removed old, unused, commanf finished events from BattleController
Refactored some turn handling stuff out of GameInstance into new TurnHandler class
Moved the tracked RNG out of GameInstance to it's own class
Moved some combat tracking events from GameInstance directly to CombatTracker
Renamed some events to make more sense
moved the actual board unit position data change for unit movement from GameInstance to CmdMove
Started refactoring player, player ID, and host stuff
moved the game instance/connection management stuff out of GameHost into a new GameInstanceDirectory class
Some pathfinder cleanup
Renamed a bunch of functions to be more readable
More board/pathfinder cleanup
Started changing functions to use BoardPoint instead of x,y where possible
Moved attack side calculation helper function from Unit to Attack
Refactored a bunch of Attack class helper functions, removed old block chance code, shortened a bunch of function signatures
Some movement refactoring
Added a GetIndexOfTile(Tile) to Board and moved a bunch of calls to it
removed test script from scene and deleted
Created a BoardUtils class and moved a few functions from Board to it
Fixed some warnings
started refactoring BoardView, ripped out anything unused, started splitting functions
Split destroy functions, renamed tilehighlight stuff and prep for moving tile highilighting out of BoardView
Added TileHighlighter class and copied the functions over from BoardView
Moved all tile highlighting stuff out of BoardView and into a new TileHighlighter class, reworked all references
made a TileHighlightTemplate scriptable object that can be used to configure the different tile highlights without doing it in code
added a function to TileHighlighter that takes a tile list and a template
started converting the hardcoded tile settings to the new templates
made templates for the rest of the tile highlight configs and removed all the hardcoded values
removed the now unused old highlight functions from the new TileHighlighter
Board now keeps a list of spawn tiles not indexes
reworked path highlighting in TileHighlighter ready to move to a new class
Moved path highlighting from TileHighlighter to a new PathHighlighter class
PathHighlighter cleaned up
Tile now has a direct reference to it's TileView
Removed list of TileViews from BoardView and all the old references now deal directly with the Tile.TileView
Moved board ripple effect out of BoardView and into a BoardRippleEffect component
Fixed TIle not getting a correct ref to it's TileView
Explosion debris is now set as a child of the explosion source tile so it get's destroyed with the tile.
Removed debris clearing function from BoardView now it's not needed
Cleaned up opponent tile hovering in Board/Tile views
Deleted unused CameraManager script, quick GameCam cleanup
Misc formatting
moved CmType enum to it's own file
cleaned up CmdAttack
fixed TileHighlighter NRE
CmdChat, CmdEmote cleanup