Skip to content

Commit 9109c38

Browse files
author
sourcehold
committed
docs: add markdown table
1 parent d6929d5 commit 9109c38

4 files changed

Lines changed: 26 additions & 1 deletion

File tree

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
'sphinx.ext.autodoc',
77
'sphinx.ext.napoleon',
88
'sphinx.ext.autosectionlabel',
9+
'myst_parser',
910
]
1011

1112
html_theme = 'furo'

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
furo
2-
sphinx
2+
sphinx
3+
myst-parser

docs/wiki.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Welcome to the OpenSHC Wiki!
66

77
Here you'll find detailed documentation about:
88

9+
- Load balancing of the core game engine
10+
:doc:`wiki/load-balancing-table`
911
- Game Mechanics
1012
- AI Behavior
1113
- Graphics and Sound Systems

docs/wiki/load-balancing-table.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
| Game tick (0 - 199) | Function called (and key args) |
2+
| -------------------------------: | ---------------------------------------------------------------------------------------------------- |
3+
| 10–18 | `recomputeTroopValuesForPlayer(&DAT_UnitsState, gTLB - 10)` → players 0–8 |
4+
| 25 | `setTreeSpreadInterval(&DAT_LandscapeState)` |
5+
| 31 | `createStatsPopUpEntities(&DAT_GameState)` |
6+
| 34 | `recountTotalTroopValue(&DAT_TroopValueState)` |
7+
| 40 | `moatRelatedUpdateFunction(&DAT_TileMapState)` |
8+
| 60–68 | `recomputeTroopValuesForPlayer(&DAT_UnitsState, gTLB - 60)` → players 0–8 |
9+
| 71–78 | `updateEnemyBuildings(&DAT_BuildingsState, gTLB - 70)` → indices 1–8 |
10+
| 80 | `spawnMotherOrChild(&DAT_GameState)` |
11+
| 93 | `recomputeTotalTroopValueOfTroopsNearKeep(&DAT_TroopValueState)` |
12+
| 95 | `processPeasantsForBuildings(&DAT_GameState)` |
13+
| 99 | `showPopAndGoldPopup(&DAT_GameState)` |
14+
| 101–108 | `recomputeTroopValuesForPlayer(&DAT_UnitsState, gTLB - 100)` → players 1–8 |
15+
| 110–149 | `updateWildlifeGrid(&DAT_WildlifeState, gTLB - 110)` → grid slice 0–39 |
16+
| 150 | `updateWildlife(&DAT_WildlifeState)` |
17+
| 151 | `updateSection1034Info(&DAT_WildlifeState)` |
18+
| 152 | `updateNofFpoints(&DAT_WildlifeState)` |
19+
| 160–168 | `recomputeTroopValuesForPlayer(&DAT_UnitsState, gTLB - 160)` → players 0–8 |
20+
| 180 | `spawnChicken(&DAT_GameState)` |
21+
| 190 | `recountStablesAndHorses(&DAT_GameState)` |

0 commit comments

Comments
 (0)