W!†A_cRaft
Ultra Cool Member
- Reaction score
- 28
Okay since im making sort of a weird map i will try to clue you guys in on what I need:
a unit to unit relation that stores certain data:
unit 1 towards unit 2 has data value of lets say 10
unit 1 towards unit 3 has data value of lets say 15
unit 2 towards unit 3 has data value of lets say 30
unit 3 towards unit 2 has data value of lets say 105
unit 3 towards unit 1 has data value of lets say 5
if you get the point, i need to make relations between units in my map and store data to it. I think the hashtable would be a rather easy way to do it.
PROBLEM:
I don't know if a hashtable can handle it, or if it would make the game laggy. Due to enormus number of relations that are kept as data stored in the hashtable itself it might cause lag, or possible even clogging the table? It would be better if i could dispose of the data when the unit decays away, since i would no longer need it.... But I cant do that with hashtables.
What are the limits with tables? Is there a way to dispose of the data that i no longer need inside the table?
a unit to unit relation that stores certain data:
unit 1 towards unit 2 has data value of lets say 10
unit 1 towards unit 3 has data value of lets say 15
unit 2 towards unit 3 has data value of lets say 30
unit 3 towards unit 2 has data value of lets say 105
unit 3 towards unit 1 has data value of lets say 5
if you get the point, i need to make relations between units in my map and store data to it. I think the hashtable would be a rather easy way to do it.
PROBLEM:
I don't know if a hashtable can handle it, or if it would make the game laggy. Due to enormus number of relations that are kept as data stored in the hashtable itself it might cause lag, or possible even clogging the table? It would be better if i could dispose of the data when the unit decays away, since i would no longer need it.... But I cant do that with hashtables.
What are the limits with tables? Is there a way to dispose of the data that i no longer need inside the table?