Fixed bug with addComponents template

-deprecated Comonent.ref_ function
-remover Comonent.ref_ usage from addComponents template
-updated dub.json
This commit is contained in:
Mergul 2021-11-17 15:03:25 +01:00
parent 54b210346d
commit 85e1f8a76e
5 changed files with 28 additions and 44 deletions

View file

@ -94,7 +94,7 @@ static struct ECS
*/
mixin template Component()
{
ComponentRef ref_() @nogc nothrow return
deprecated ComponentRef ref_() @nogc nothrow return
{
return ComponentRef(&this, becsID!(typeof(this)));
}