75 |
if (action == "callback") { |
if (action == "callback") { |
76 |
lua::CallFunc(target.c_str(), Value(onoff)); |
lua::CallFunc(target.c_str(), Value(onoff)); |
77 |
} |
} |
78 |
else if (action == "oxydsignal") { |
else if (action == "signal") { |
79 |
|
world::EmitSignals (o); |
80 |
} |
} |
81 |
else if (Object *o = GetNamedObject(target)) { |
else if (Object *o = GetNamedObject(target)) { |
82 |
SendMessage(o, action); |
SendMessage(o, action); |
334 |
- \b open open the bridge so actors cannot pass it |
- \b open open the bridge so actors cannot pass it |
335 |
- \b close close the bridge so actors can pass it |
- \b close close the bridge so actors can pass it |
336 |
- \b openclose toggle the state of the bridge |
- \b openclose toggle the state of the bridge |
337 |
|
- \b signal same as \b openclose |
338 |
|
|
339 |
*/ |
*/ |
340 |
namespace |
namespace |
374 |
change_state(OPENING); |
change_state(OPENING); |
375 |
else if (m=="close" && (state==OPEN || state==OPENING)) |
else if (m=="close" && (state==OPEN || state==OPENING)) |
376 |
change_state(CLOSING); |
change_state(CLOSING); |
377 |
else if (m=="openclose") { |
else if (m=="openclose" || m=="signal") { |
378 |
if (state==OPEN || state==OPENING) |
if (state==OPEN || state==OPENING) |
379 |
change_state(CLOSING); |
change_state(CLOSING); |
380 |
else |
else |
1956 |
change_state(OPENING); |
change_state(OPENING); |
1957 |
else if (m=="close" && (state==OPEN || state==OPENING)) |
else if (m=="close" && (state==OPEN || state==OPENING)) |
1958 |
change_state(CLOSING); |
change_state(CLOSING); |
1959 |
else if (m=="openclose") { |
else if (m=="openclose" || m=="signal") { |
1960 |
if (state==OPEN || state==OPENING) |
if (state==OPEN || state==OPENING) |
1961 |
change_state(CLOSING); |
change_state(CLOSING); |
1962 |
else |
else |
2390 |
} |
} |
2391 |
|
|
2392 |
LaserSwitch::LaserSwitch() |
LaserSwitch::LaserSwitch() |
2393 |
: PhotoStone("st-laserswitch"), state(OFF), model_bak(0) |
: PhotoStone("st-laserswitch"), state(OFF), model_bak(0) |
2394 |
{ |
{ |
2395 |
} |
} |
2396 |
|
|