Do you think forum section devoted to SDK here would be needed?
Now, there is still something wrong with that solution, first who find out what, gets a candy!
array<superfoo@> Foos;
bool _FooUse(Item& item, Critter& crit, Critter@ onCritter, Item@ onItem, Scenery@ onScenery){ ISuperFoo@ foo = GetFoo(item); if(valid(foo)) foo.Bar();}
void item_init(Item& item, bool){ AddFoo(item); item.SetEvent(ITEM_EVENT_USE, "_FooUse");}
_FooUse don't return bool?
Over time, each new SuperFoo are added to our array and all not used item on game using SuperFoo are still handle in our array(can't be released), memory can only grow?
"bool firstTime" in parameter?
server asks CouchDB for data it needs to synchronize