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

Function MakeMsgColumn

BG3Extender/Osiris/Debugger/DebugMessages.cpp:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 }
16
17 void MakeMsgColumn(MsgTypedValue & msgTv, TypedValue const & tv)
18 {
19 msgTv.set_type_id((uint16_t)tv.TypeId);
20 auto const & val = tv.Value;
21
22 switch ((ValueType)tv.TypeId) {
23 case ValueType::None: break;
24 case ValueType::Undefined: *msgTv.mutable_stringval() = "(Undefined)"; break;
25 case ValueType::Integer: msgTv.set_intval(val.Int32); break;
26 case ValueType::Integer64: msgTv.set_intval(val.Int64); break;
27 case ValueType::Real: msgTv.set_floatval(val.Float); break;
28 default: *msgTv.mutable_stringval() = tv.GetString(); break;
29 }
30 }
31
32 void MakeMsgColumn(MsgTypedValue & msgTv, OsiArgumentValue const & arg)
33 {

Callers 1

MakeMsgTupleFunction · 0.85

Calls 1

GetStringMethod · 0.80

Tested by

no test coverage detected