I meant use the function Script:UpdateWorld() from an xxx.lua class to write text by getting the main context from the app.lua
like
App.context:DrawText(test,x,y)
+ do some setblendmode stuff before and after
should work i guess?
I prefer DDD so I would seperate so much as possible and so less then needed that the code is logical correct with the real world.
vars from classes also should always be private. to get write/read access use getters/setters
a weapon cant draw anything in reallife so you need a hud class also. the hud class onnly can draw. so the hud class have to ask weapon class how much ammo is available to draw it on the screen.