Merge branch 'export_id' into 'master'
Export id generated by becsID See merge request Mergul/bubel-ecs!24
This commit is contained in:
commit
881d6d113b
1 changed files with 5 additions and 2 deletions
|
|
@ -11,8 +11,11 @@ import std.traits;
|
|||
*/
|
||||
ref ushort becsID(T)()
|
||||
{
|
||||
__gshared ushort id = ushort.max;
|
||||
return id;
|
||||
/// Embed id in struct so export can be added to variable definition
|
||||
static struct LocalStruct {
|
||||
export __gshared ushort id = ushort.max;
|
||||
}
|
||||
return LocalStruct.id;
|
||||
}
|
||||
|
||||
/************************************************************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue