Monsters tide turn by turn && Ban User Skill && Lua functions

This commit is contained in:
Akka
2022-05-07 21:47:13 +08:00
committed by Melledy
parent 29f9d6506a
commit eb94adb296
8 changed files with 232 additions and 88 deletions

View File

@@ -105,7 +105,13 @@ public class Scene {
public GameEntity getEntityById(int id) {
return this.entities.get(id);
}
public GameEntity getEntityByConfigId(int configId) {
return this.entities.values().stream()
.filter(x -> x.getConfigId() == configId)
.findFirst()
.orElse(null);
}
/**
* @return the autoCloseTime
*/