3 ms·
Game modding in general tends to strongly resemble AOP. How you do it depends on what the game itself provides you, but it tends to boil down to hooking various
by plorkyeran 5y ago
Game modding in general tends to strongly resemble AOP. How you do it depends on what the game itself provides you, but it tends to boil down to hooking various parts of the game which may or may not have been intended as extension points and either replacing the default code or adding your own logic.
Game modding also demonstrates the big strengths and weaknesses of AOP. New versions of games tend to break some or all mods until the mods are updated, even if the game developer is trying to support the modding scene and avoid breaking things. When literally every function in your code base is a potential extension point, it becomes impossible to change anything without breaking something else, and you can get insane impossible to debug errors.