DayZ-CommunityFramework
DayZ-CommunityFramework copied to clipboard
EventArgs cleanup deleting data
If module events modify data we pass back into moddable events like OnClientNewEvent
and the event args are forcefully deleted they can null other mods data.
e.g. player = args.Player
We need a better way to not cause memory leaks but also not delete data somewhere. Strong ref / autoptr management and not deleting manually or having a rolling instance