Small fixes
This commit is contained in:
parent
014e9cee8d
commit
24a07a05e5
13 changed files with 46 additions and 29 deletions
|
|
@ -80,8 +80,6 @@ export struct EntityManager
|
|||
{
|
||||
UpdatePass* pass = Mallocator.make!UpdatePass;
|
||||
pass.name = Mallocator.makeArray(cast(char[]) "update");
|
||||
//pass.name = Mallocator.makeArray!char("update".length);
|
||||
//pass.name[0..$] = "update";
|
||||
passes.add(pass);
|
||||
passes_map.add(cast(string) pass.name, cast(ushort)(passes.length - 1));
|
||||
}
|
||||
|
|
@ -297,7 +295,6 @@ export struct EntityManager
|
|||
if (threads_count == 0)
|
||||
threads_count = 1;
|
||||
threads = Mallocator.makeArray!ThreadData(threads_count);
|
||||
//foreach(ref thread;threads)thread = ThreadData().init;
|
||||
|
||||
m_page_size = page_size;
|
||||
m_pages_in_block = block_pages_count;
|
||||
|
|
@ -1253,8 +1250,6 @@ export struct EntityManager
|
|||
{
|
||||
UpdatePass* pass = Mallocator.make!UpdatePass;
|
||||
pass.name = Mallocator.makeArray(cast(char[]) name);
|
||||
/*pass.name = Mallocator.makeArray!char(name.length);
|
||||
pass.name[0..$] = name[0..$];*/
|
||||
passes.add(pass);
|
||||
passes_map.add(name, cast(ushort)(passes.length - 1));
|
||||
return cast(ushort)(passes.length - 1);
|
||||
|
|
@ -1849,8 +1844,6 @@ export struct EntityManager
|
|||
info = Mallocator.make!EntityInfo;
|
||||
|
||||
info.components = Mallocator.makeArray(ids);
|
||||
/*info.components = Mallocator.makeArray!ushort(ids.length);
|
||||
info.components[0 .. $] = ids[0 .. $];*/
|
||||
info.deltas = Mallocator.makeArray!ushort(ids[$ - 1] + 1);
|
||||
|
||||
info.size = EntityID.sizeof;
|
||||
|
|
@ -3226,8 +3219,6 @@ export struct EntityManager
|
|||
if (index > 0)
|
||||
{
|
||||
caller.exclusion = Mallocator.makeArray(exclusion[0 .. index]);
|
||||
/*caller.exclusion = Mallocator.makeArray!(SystemCaller*)(index);
|
||||
caller.exclusion[0..$] = exclusion[0 .. index];*/
|
||||
}
|
||||
else
|
||||
caller.exclusion = null;
|
||||
|
|
@ -3275,8 +3266,6 @@ export struct EntityManager
|
|||
if (index > 0)
|
||||
{
|
||||
caller.dependencies = Mallocator.makeArray(exclusion[0 .. index]);
|
||||
/*caller.dependencies = Mallocator.makeArray!(SystemCaller*)(index);
|
||||
caller.dependencies[0..$] = exclusion[0 .. index];*/
|
||||
caller.job_group.dependencies = Mallocator.makeArray!(JobGroup*)(index);
|
||||
|
||||
foreach (j, dep; caller.dependencies)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue