20.06.2018, 17:29
Quote:
Here are a couple of gamemodes that follow a pretty standard module layout:
https://github.com/Southclaws/ScavengeSurvive - quite an old gamemode, code is split based on either whether it applies to player accounts, player characters or the game world. It's a good starting point but quite old so it has gathered quite a few hacks and workarounds in terms of layout that I never got around to fixing. https://github.com/Southclaws/samp-sandbox - a much newer project that's quite young. Here I'm experimenting with some newer ways of splitting code as well as making heavy use of dependencies as packages, making each unit individually testable. Pawn and SA:MP lives in this "bubble" where standard, logical practices don't seem to pierce. My advise is to look at some other projects in other programming languages on GitHub - you don't need to know the language, just look at how the files are structured. |