Create shared method that be called twice. Once for entities, once for items
Write a iterate_matrix method(). Iterates matrix then calls a callable called my_func().
Write a create_items_from layout() and create_entities_from_layout() methods then pass in those into iterate_matrix() so they can be called after iterating through the matrix
Create shared method that be called twice. Once for entities, once for items
Write a iterate_matrix method(). Iterates matrix then calls a callable called my_func(). Write a create_items_from layout() and create_entities_from_layout() methods then pass in those into iterate_matrix() so they can be called after iterating through the matrix