mirror of https://github.com/OpenRCT2/OpenRCT2.git
Move NewsItemQueue methods implementation to .cpp
This commit is contained in:
parent
efa92a28fa
commit
4f698387f6
|
@ -39,6 +39,26 @@ const uint8_t news_type_properties[] = {
|
|||
NEWS_TYPE_HAS_SUBJECT, // NEWS_ITEM_GRAPH
|
||||
};
|
||||
|
||||
NewsItem& NewsItemQueue::Current()
|
||||
{
|
||||
return Recent[0];
|
||||
}
|
||||
|
||||
const NewsItem& NewsItemQueue::Current() const
|
||||
{
|
||||
return Recent[0];
|
||||
}
|
||||
|
||||
NewsItem& NewsItemQueue::Oldest()
|
||||
{
|
||||
return Old[0];
|
||||
}
|
||||
|
||||
const NewsItem& NewsItemQueue::Oldest() const
|
||||
{
|
||||
return Old[0];
|
||||
}
|
||||
|
||||
bool news_item_is_valid_idx(int32_t index)
|
||||
{
|
||||
if (index >= MAX_NEWS_ITEMS)
|
||||
|
|
|
@ -72,22 +72,10 @@ struct NewsItemQueue
|
|||
bool IsEmpty() const;
|
||||
void Init();
|
||||
uint16_t IncrementTicks();
|
||||
NewsItem& Current()
|
||||
{
|
||||
return Recent[0];
|
||||
}
|
||||
const NewsItem& Current() const
|
||||
{
|
||||
return Recent[0];
|
||||
}
|
||||
NewsItem& Oldest()
|
||||
{
|
||||
return Old[0];
|
||||
}
|
||||
const NewsItem& Oldest() const
|
||||
{
|
||||
return Old[0];
|
||||
}
|
||||
NewsItem& Current();
|
||||
const NewsItem& Current() const;
|
||||
NewsItem& Oldest();
|
||||
const NewsItem& Oldest() const;
|
||||
bool IsCurrentOld() const;
|
||||
void MoveCurrentToOld();
|
||||
NewsItem* FirstOpenSlot();
|
||||
|
|
Loading…
Reference in New Issue