silphius/app/react-components/entities.jsx
2024-06-27 13:57:18 -05:00

22 lines
381 B
JavaScript

import {Container} from '@pixi/react';
import Entity from './entity.jsx';
export default function Entities({entities}) {
const renderables = [];
for (const id in entities) {
renderables.push(
<Entity
entity={entities[id]}
key={id}
/>
);
}
return (
<Container
sortableChildren
>
{renderables}
</Container>
);
}