Skip to content

Commit

Permalink
Scripting|libcore: Added method to query NumberValue semantic hints
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 1, 2016
1 parent 02fced3 commit ae846bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions doomsday/sdk/libcore/include/de/data/numbervalue.h
Expand Up @@ -61,6 +61,7 @@ class DENG2_PUBLIC NumberValue : public Value
NumberValue(bool initialBoolean);

void setSemanticHints(SemanticHints hints);
SemanticHints semanticHints() const;

/**
* Conversion template that forces a cast to another type.
Expand Down
5 changes: 5 additions & 0 deletions doomsday/sdk/libcore/src/data/numbervalue.cpp
Expand Up @@ -194,4 +194,9 @@ Value::Text NumberValue::typeId() const
return "Number";
}

NumberValue::SemanticHints NumberValue::semanticHints() const
{
return _semantic;
}

} // namespace de

0 comments on commit ae846bd

Please sign in to comment.