@@ -69,13 +69,6 @@ CR_REG_METADATA_SUB(CGroundDecalHandler, UnitMinMaxHeight,
69
69
CR_MEMBER(max)
70
70
))
71
71
72
- CR_BIND(CGroundDecalHandler::DecalUpdateList, )
73
- CR_REG_METADATA_SUB(CGroundDecalHandler, DecalUpdateList,
74
- (
75
- CR_MEMBER (updateList),
76
- CR_MEMBER(changed)
77
- ))
78
-
79
72
CR_BIND_DERIVED(CGroundDecalHandler, IGroundDecalDrawer, )
80
73
CR_REG_METADATA(CGroundDecalHandler, (
81
74
CR_MEMBER_UN (maxUniqueScars),
@@ -1673,64 +1666,4 @@ void CGroundDecalHandler::FeatureMoved(const CFeature* feature, const float3& ol
1673
1666
void CGroundDecalHandler::UnitLoaded (const CUnit* unit, const CUnit* transport) { ForceRemoveSolidObject (unit); }
1674
1667
void CGroundDecalHandler::UnitUnloaded (const CUnit* unit, const CUnit* transport) { AddSolidObject (unit); }
1675
1668
1676
- void CGroundDecalHandler::UnitMoved (const CUnit* unit) { AddTrack (unit, unit->pos ); }
1677
-
1678
- // /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1679
-
1680
- void CGroundDecalHandler::DecalUpdateList::SetNeedUpdateAll ()
1681
- {
1682
- RECOIL_DETAILED_TRACY_ZONE;
1683
- std::fill (updateList.begin (), updateList.end (), true );
1684
- changed = true ;
1685
- }
1686
-
1687
- void CGroundDecalHandler::DecalUpdateList::ResetNeedUpdateAll ()
1688
- {
1689
- RECOIL_DETAILED_TRACY_ZONE;
1690
- std::fill (updateList.begin (), updateList.end (), false );
1691
- changed = false ;
1692
- }
1693
-
1694
- void CGroundDecalHandler::DecalUpdateList::SetUpdate (const CGroundDecalHandler::DecalUpdateList::IteratorPair& it)
1695
- {
1696
- RECOIL_DETAILED_TRACY_ZONE;
1697
- std::fill (it.first , it.second , true );
1698
- changed = true ;
1699
- }
1700
-
1701
- void CGroundDecalHandler::DecalUpdateList::SetUpdate (size_t offset)
1702
- {
1703
- RECOIL_DETAILED_TRACY_ZONE;
1704
- assert (offset < updateList.size ());
1705
- updateList[offset] = true ;
1706
- changed = true ;
1707
- }
1708
-
1709
- void CGroundDecalHandler::DecalUpdateList::EmplaceBackUpdate ()
1710
- {
1711
- RECOIL_DETAILED_TRACY_ZONE;
1712
- updateList.emplace_back (true );
1713
- changed = true ;
1714
- }
1715
-
1716
- std::optional<CGroundDecalHandler::DecalUpdateList::IteratorPair> CGroundDecalHandler::DecalUpdateList::GetNext (const std::optional<CGroundDecalHandler::DecalUpdateList::IteratorPair>& prev)
1717
- {
1718
- RECOIL_DETAILED_TRACY_ZONE;
1719
- auto beg = prev.has_value () ? prev.value ().second : updateList.begin ();
1720
- beg = std::find (beg, updateList.end (), true );
1721
- auto end = std::find (beg, updateList.end (), false );
1722
-
1723
- if (beg == end)
1724
- return std::nullopt;
1725
-
1726
- return std::make_optional (std::make_pair (beg, end));
1727
- }
1728
-
1729
- std::pair<size_t , size_t > CGroundDecalHandler::DecalUpdateList::GetOffsetAndSize (const CGroundDecalHandler::DecalUpdateList::IteratorPair& it)
1730
- {
1731
- RECOIL_DETAILED_TRACY_ZONE;
1732
- return std::make_pair (
1733
- std::distance (updateList.begin (), it.first ),
1734
- std::distance (it.first , it.second )
1735
- );
1736
- }
1669
+ void CGroundDecalHandler::UnitMoved (const CUnit* unit) { AddTrack (unit, unit->pos ); }
0 commit comments