ReflectionsProjections / mm20

MechMania 20
1 stars 1 forks source link

Furniture #4

Closed ace-n closed 10 years ago

ace-n commented 10 years ago

How are we storing furniture?

The current setup seems to be a dict with key-value pairs of type {furnitureName as string, furnitureLocation as 2-tuple of int}.

My main issue with this is that it isn't super-supportive of storing multiple pieces of furniture of the same type. Granted, we could do "Table1", "Table2", etc... but I feel like that would be unnecessarily clunky. I would personally favor a list of key-value pairs rather than a dict - that way we can have multiple things called "Table". Also, the low number of furniture pieces involved makes any performance advantages of using a dict over a list of K-V pairs pretty much nonexistent.)

I also hope that I am not trying to impose my view of things on anyone - I know I have submitted several conceptual questions, so I don't want to sound like I'm trying to stomp on everyone's prior decisions just for the sake of doing so.