Skip to content

Commit 5ea4b34

Browse files
committed
gamestate: LineOfSight definitions.
1 parent a6cef6c commit 5ea4b34

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libopenage/gamestate/api/definitions.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ static const auto ABILITY_DEFS = datastructure::create_const_map<ability_t, nyan
4242
std::pair(ability_t::LIVE,
4343
nyan::ValueHolder(std::make_shared<nyan::ObjectValue>("engine.ability.type.Live"))),
4444
std::pair(ability_t::TURN,
45-
nyan::ValueHolder(std::make_shared<nyan::ObjectValue>("engine.ability.type.Turn"))));
45+
nyan::ValueHolder(std::make_shared<nyan::ObjectValue>("engine.ability.type.Turn"))),
46+
std::pair(ability_t::LINE_OF_SIGHT,
47+
nyan::ValueHolder(std::make_shared<nyan::ObjectValue>("engine.ability.type.LineOfSight"))));
4648

4749
/**
4850
* Maps internal effect types to nyan API values.

libopenage/gamestate/api/types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ enum class ability_t {
1818
LIVE,
1919
MOVE,
2020
TURN,
21+
LINE_OF_SIGHT,
2122

2223
// TODO
2324
};

0 commit comments

Comments
 (0)