Commit fa6a22c
authored
Create switchcontext.ts ...
... to provide an easy way for EACH switchBlock to track their own caseBlock garage and all the entities within. Before, we were going to use a shared space, akin to a shared parking lot for all the switchBlocks in the "mall", with each switchBlock being akin to a store. This would have made things awkward and extremely difficult to maintain or even test safely with more than one switchBlock in use in a project/game. So, we are tackling that here and now before we wind up with s'ghetti code or worse, circular dependencies, **shudders**
This class will depend upon content, logic, and assumptions that are present in other files and classes/functions/etc.
This commit isn't to complete this step, nor to even hook it up with the main logic stream - instead, we are just placing the bricks, mortar, tools, and workers about the project so they will be ready at the time this is actually put together.1 parent 6d30d42 commit fa6a22c
1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments