2024-02-25 14:46:47 +00:00
|
|
|
#pragma once
|
2023-06-20 04:33:09 +00:00
|
|
|
|
|
|
|
#include "StarLua.hpp"
|
|
|
|
#include "StarEntity.hpp"
|
|
|
|
|
|
|
|
namespace Star {
|
|
|
|
|
|
|
|
namespace LuaBindings {
|
|
|
|
LuaCallbacks makeEntityCallbacks(Entity const* entity);
|
|
|
|
|
|
|
|
namespace EntityCallbacks {
|
|
|
|
EntityId id(Entity const* entity);
|
|
|
|
LuaTable damageTeam(Entity const* entity, LuaEngine& engine);
|
|
|
|
bool isValidTarget(Entity const* entity, EntityId entityId);
|
|
|
|
Vec2F distanceToEntity(Entity const* entity, EntityId entityId);
|
|
|
|
bool entityInSight(Entity const* entity, EntityId entityId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|