DigitalPulseSoftware / BurgWar

Burg'war est un jeu de plateforme/combat multijoueur en 2D écrit en C++17/Lua avec mon propre moteur de jeu : Nazara Engine.
MIT License
52 stars 9 forks source link

Elements libraries #11

Closed SirLynix closed 5 years ago

SirLynix commented 5 years ago

Until now, every element functions were implemented in the [Server|Client|Shared][Entity|Weapon]Store which was a problem when we had to implement a server function common (self:GetOwner()) to all elements without duplicating code.

In order to fix this and make it easier to implement elements functions, I added elements libraries (similar to scripting libraries) which allow to separate store logic from functions and to combine multiple libraries (ex: ServerElementLibrary + ServerEntityLibrary).

It adds a shitload of files which may be good for compilation time on modification.

I made several changes which were not mandatory for this but helped cleaning the whole code base: