MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / PushNewsData

Method PushNewsData

ogsr_engine/xrGame/actor_communication.cpp:118–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void CActor::PushNewsData(GAME_NEWS_DATA& news_data)
119{
120 GAME_NEWS_VECTOR& news_vector = game_news_registry->registry().objects();
121 news_data.receive_time = Level().GetGameTime();
122 news_vector.push_back(news_data);
123 if (news_vector.size() > NewsToShow())
124 news_vector.pop_front();
125}
126
127void CActor::AddGameNews(GAME_NEWS_DATA& news_data)
128{

Callers 1

AddAnswerMethod · 0.80

Calls 3

GetGameTimeMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected