[FEATURE REQUEST] API for adding/removing inventory
Posted: 23 Sep 2010, 23:11
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:
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.
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;
The suggested code above is pretty rough but I'm sure you get the idea.