[FEATURE REQUEST] API for adding/removing inventory

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
svizzari
Posts: 64
Joined: 18 Jun 2010, 11:55

[FEATURE REQUEST] API for adding/removing inventory

Post 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.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Thank you for the suggestion. We will evaluate it for future releases.
Paolo Bax
The SmartFoxServer Team
svizzari
Posts: 64
Joined: 18 Jun 2010, 11:55

Post 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.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Posting here is fine. We added your request to our management system and evaluate later.
Paolo Bax
The SmartFoxServer Team
Post Reply