MCPcopy Create free account
hub / github.com/MothCocoon/FlowGraph / AddMessage

Function AddMessage

Source/Flow/Public/FlowMessageLog.h:81–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81protected:
82 template <typename T>
83 void AddMessage(const FName MessageID, const TCHAR* Format, TSharedRef<FTokenizedMessage>& Message, T* Object)
84 {
85 Message->SetIdentifier(MessageID);
86
87 if (Object)
88 {
89 if (const TSharedPtr<IMessageToken> Token = FFlowGraphToken::Create(Object, Message.Get()))
90 {
91 Message->SetMessageLink(FUObjectToken::Create(Object));
92 }
93 }
94
95 Message.Get().AddToken(FTextToken::Create(FText::FromString(Format)));
96 Messages.Add(Message);
97 }
98};
99
100#endif // WITH_EDITOR

Callers

nothing calls this directly

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected