| 34 | } |
| 35 | |
| 36 | LuaTable LuaBindings::EntityCallbacks::damageTeam(Entity const* entity, LuaEngine& engine) { |
| 37 | auto table = engine.createTable(); |
| 38 | auto team = entity->getTeam(); |
| 39 | table.set("type", TeamTypeNames.getRight(team.type)); |
| 40 | table.set("team", team.team); |
| 41 | return table; |
| 42 | } |
| 43 | |
| 44 | bool LuaBindings::EntityCallbacks::isValidTarget(Entity const* entity, EntityId entityId) { |
| 45 | auto target = entity->world()->entity(entityId); |
nothing calls this directly
no test coverage detected