Fix refresh Lua binding and comments

This commit is contained in:
Jérôme Leclercq 2018-02-08 16:25:52 +01:00
parent a9364ab7e2
commit 34fe5dd466
3 changed files with 5 additions and 2 deletions

View File

@ -66,11 +66,11 @@ namespace Ndk
inline bool IsEntityIdValid(EntityId id) const;
inline bool IsProfilerEnabled() const;
void Refresh();
inline void RemoveAllSystems();
inline void RemoveSystem(SystemIndex index);
template<typename SystemType> void RemoveSystem();
void Refresh();
inline void ResetProfiler();
void Update(float elapsedTime);

View File

@ -182,7 +182,9 @@ namespace Ndk
world.BindMethod("DisableProfiler", &World::DisableProfiler);
world.BindMethod("EnableProfiler", &World::EnableProfiler);
world.BindMethod("IsProfilerEnabled", &World::IsProfilerEnabled);
world.BindMethod("Refresh", &World::Refresh);
world.BindMethod("ResetProfiler", &World::ResetProfiler);
world.BindMethod("Update", &World::Update);
world.BindMethod("IsValidHandle", &WorldHandle::IsValid);
}

View File

@ -178,6 +178,7 @@ namespace Ndk
* - Destroying dead entities and allowing their ids to be used by newly created entities
* - Update dirty entities, destroying their removed components and filtering them along systems
*
* \remark This is called automatically by Update and you most likely won't need to call it yourself
* \remark Calling this outside of Update will not increase the profiler values
*
* \see GetProfilerData