Hello all:
I'm looking at how to model this setup. I have objects in a game, that
are called entities. Each entity has a list of components, which inherit
the component class. A living component might have attributes like hp,
max_hp, etc along with the component properties.
So: I'm trying to find a way to model the components so that I can
access them.
I was thinking a table like:
id-component_id-name
then each component can have it's own table.
Is this the best way to do this? How would I model that within SA itself?
--
Take care,
Ty
http://tds-solutions.net
The aspen project: a barebones light-weight mud engine:
http://code.google.com/p/aspenmud
He that will not reason is a bigot; he that cannot reason is a fool; he that dares not reason is a slave.