MCPcopy Create free account
hub / github.com/Norbyte/bg3se / MsgToValue

Function MsgToValue

BG3Extender/Osiris/Debugger/Debugger.cpp:516–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514 }
515
516 void MsgToValue(MsgTypedValue const & msg, TypedValue & tv)
517 {
518 auto type = (ValueType)msg.type_id();
519 switch ((ValueType)msg.type_id()) {
520 case ValueType::None:
521 break;
522
523 case ValueType::Integer:
524 tv.SetValue(type, (int32_t)msg.intval());
525 break;
526
527 case ValueType::Integer64:
528 tv.SetValue(type, (int64_t)msg.intval());
529 break;
530
531 case ValueType::Real:
532 tv.SetValue(type, msg.floatval());
533 break;
534
535 case ValueType::String:
536 case ValueType::GuidString:
537 default:
538 tv.SetValue(type, msg.stringval().c_str());
539 break;
540 }
541 }
542
543 void MsgToTuple(MsgTuple const & msg, SmallTuple& tuple)
544 {

Callers 1

MsgToTupleFunction · 0.85

Calls 1

SetValueMethod · 0.45

Tested by

no test coverage detected