yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::ObjectUsageIndex Class Reference

#include <object_coverage_model.h>

Public Member Functions

void AddRoom (int room_id, const std::vector< zelda3::RoomObject > &objects)
 
const std::vector< ObjectOccurrence > * Find (int object_id) const
 
int RoomCountFor (int object_id) const
 
int rooms_scanned () const
 

Private Attributes

std::map< int, std::vector< ObjectOccurrence > > by_object_
 
int rooms_scanned_ = 0
 

Detailed Description

Definition at line 95 of file object_coverage_model.h.

Member Function Documentation

◆ AddRoom()

◆ Find()

◆ RoomCountFor()

int yaze::editor::ObjectUsageIndex::RoomCountFor ( int object_id) const

Definition at line 288 of file object_coverage_model.cc.

References Find().

Referenced by yaze::editor::ObjectCoveragePanel::DrawObjectOccurrences(), and yaze::editor::ObjectCoveragePanel::DrawObjectTable().

Here is the call graph for this function:

◆ rooms_scanned()

int yaze::editor::ObjectUsageIndex::rooms_scanned ( ) const
inline

Definition at line 101 of file object_coverage_model.h.

References rooms_scanned_.

Referenced by yaze::editor::ObjectCoveragePanel::DrawSummary().

Member Data Documentation

◆ by_object_

std::map<int, std::vector<ObjectOccurrence> > yaze::editor::ObjectUsageIndex::by_object_
private

Definition at line 104 of file object_coverage_model.h.

Referenced by AddRoom(), and Find().

◆ rooms_scanned_

int yaze::editor::ObjectUsageIndex::rooms_scanned_ = 0
private

Definition at line 105 of file object_coverage_model.h.

Referenced by AddRoom(), and rooms_scanned().


The documentation for this class was generated from the following files: