Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/scripting/StarEntityLuaBindings.hpp
blob: 55316c9942673c7493ada125f1017fd45d359a87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef STAR_ENTITY_LUA_BINDINGS_HPP
#define STAR_ENTITY_LUA_BINDINGS_HPP

#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);
  }
}
}

#endif