Page 1 of 1

[FEATURE REQUEST] API for adding/removing inventory

Posted: 23 Sep 2010, 23:11
by svizzari
Hi guys -- First off, I think you've done a great job with existing OpenSpace functionality.

I do think, however, that adding some API to allow direct interaction with a map outside of the drop/drag mechanism would be great.

This might be something like:

Code: Select all

OpenSpace.addInventoryItem(itemId:String, coords:Position3D, tileInstName:String, tileTriggers:Array, params:Array, broadcast:Boolean = true):Boolean;
OpenSpace.removeInventoryItem(itemId:String, coords:Position3D):Sprite;
where the final broadcast argument, when adding, would determine whether other clients were updated.

The suggested code above is pretty rough but I'm sure you get the idea.

Posted: 24 Sep 2010, 11:45
by Bax
Thank you for the suggestion. We will evaluate it for future releases.

Posted: 24 Sep 2010, 20:55
by svizzari
Hi Bax -- should I have posted this in the feature requests forum? It didn't seem like a SFS request per se.

It would definitely be helpful in my situation to have API methods like those I outlined.

Posted: 27 Sep 2010, 07:29
by Bax
Posting here is fine. We added your request to our management system and evaluate later.