MCPcopy Create free account
hub / github.com/carbonengine/trinity / ExposeToBlue

Method ExposeToBlue

trinity/Curves/TriEventCurve_Blue.cpp:9–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7BLUE_DEFINE( TriEventCurve );
8
9const Be::ClassInfo* TriEventCurve::ExposeToBlue()
10{
11 EXPOSURE_BEGIN( TriEventCurve, ":jessica-deprecated: True" )
12 MAP_INTERFACE( TriEventCurve )
13 MAP_INTERFACE( ITriFunction )
14 MAP_INTERFACE( IInitialize )
15 MAP_INTERFACE( ITriCurveLength )
16
17 MAP_ATTRIBUTE(
18 "name",
19 m_name,
20 "",
21 Be::READWRITE | Be::PERSIST )
22 MAP_ATTRIBUTE(
23 "time",
24 m_time,
25 "Current time of the curve",
26 Be::READ )
27 MAP_ATTRIBUTE(
28 "length",
29 m_length,
30 "Length of the curve",
31 Be::READ )
32 MAP_ATTRIBUTE(
33 "localTime",
34 m_localTime,
35 "Local time - reset to 0 when curve cycles.",
36 Be::READ )
37 MAP_ATTRIBUTE(
38 "value",
39 m_value,
40 "The string value of the last key triggered.",
41 Be::READWRITE | Be::PERSIST )
42 MAP_ATTRIBUTE(
43 "keys",
44 m_keys,
45 "These are the keys of the curve",
46 Be::PERSISTONLY )
47 MAP_ATTRIBUTE_WITH_CHOOSER(
48 "extrapolation",
49 m_extrapolation,
50 "This controls how time values outside the range of the curve are handled",
51 Be::READWRITE | Be::PERSIST | Be::ENUM,
52 TriExtrapolation )
53 MAP_ATTRIBUTE(
54 "eventListener",
55 m_eventListener,
56 "",
57 Be::READWRITE )
58
59 MAP_METHOD_AND_WRAP(
60 "AddKey",
61 AddKey,
62 "Adds a key with a string value. This string value is passed to\n"
63 "the handler when the key is triggered.\n"
64 ":param time: key time\n"
65 ":param evtName: event name" )
66

Callers

nothing calls this directly

Calls 1

MAP_INTERFACEFunction · 0.70

Tested by

no test coverage detected