D1st0rt wrote: |
Unfortunately I think the only way this would work right now is if you exposed some sort of AddElement function in your c interface and then called that while iterating through your python lists, or something along those lines. I'm still thinking about ways to implement generic list translations, if you have any ideas. |
D1st0rt wrote: |
I'm not really sure what you're trying to do, there's some ambiguity as to what you want to accomplish in which language. That being said I think I came up with a good way to implement list translation it's just taking longer than I expected to wrap my head around the part of pymod-process that is necessary to get it done. |
Code: Show/Hide itemslist = set()
class item(object): id = -1 # SQL use name = "" ... prizes = {} overrides = {} attributes = {} def AddItem(item): set.add(item) def GetItemByName(name): for i in itemslist: if i.name == name: return None # <-- Placeholder |