branchspacechess/main/cicancel
112 Commits over 31 Days - 0.15cph!
Tile.MoveDirection now takes two tiles instead of 2 positions
some .position -> .tile changes
Unit now has a ref to it's Tile too
Made Board.GetUnitTile() private and made everything use the new ref instead
Added a Unit ref to Tile, changed all references to and look ups of the old tileID to use the new ref
changed all the casted Unit entity references to direct Unit references in EntityManager
EntityManager now has dedicated lists for Unit and UnitView
Added a UnitView reference to Unit that gets set when the UnitView is spawned
Finished cleaning up commands
CommandQueue cleanup
Moved TileFall visual warning/destroy effects out of CmdNextTurn and into a new BoardTileEffect component
Moved the remaining tile fall functions out of BoardView into BoardTileEffect
CmdChat, CmdEmote cleanup
moved CmType enum to it's own file
cleaned up CmdAttack
fixed TileHighlighter NRE
Deleted unused CameraManager script, quick GameCam cleanup
Misc formatting
Cleaned up opponent tile hovering in Board/Tile views
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
Moved board ripple effect out of BoardView and into a BoardRippleEffect component
Fixed TIle not getting a correct ref to it's TileView
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
PathHighlighter cleaned up
Moved path highlighting from TileHighlighter to a new PathHighlighter class
reworked path highlighting in TileHighlighter ready to move to a new class
Board now keeps a list of spawn tiles not indexes
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
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
Moved all tile highlighting stuff out of BoardView and into a new TileHighlighter class, reworked all references
Added TileHighlighter class and copied the functions over from BoardView
Split destroy functions, renamed tilehighlight stuff and prep for moving tile highilighting out of BoardView
started refactoring BoardView, ripped out anything unused, started splitting functions
Created a BoardUtils class and moved a few functions from Board to it
Fixed some warnings
removed test script from scene and deleted
Added a GetIndexOfTile(Tile) to Board and moved a bunch of calls to it
Some movement refactoring
Refactored a bunch of Attack class helper functions, removed old block chance code, shortened a bunch of function signatures
Moved attack side calculation helper function from Unit to Attack
More board/pathfinder cleanup
Started changing functions to use BoardPoint instead of x,y where possible
Some pathfinder cleanup
Renamed a bunch of functions to be more readable
moved the game instance/connection management stuff out of GameHost into a new GameInstanceDirectory class
Started refactoring player, player ID, and host stuff
moved the actual board unit position data change for unit movement from GameInstance to CmdMove