function SwapResourceAction(oldResource, newResource, manager, category)
{
	Action.call(this);
	
	this.oldResource = oldResource;
	this.newResource = newResource;
	this.manager = manager;
	this.category = category;
}
Swap resource in the resource manager. The new resource is used to replace the old one.

Usages of the old resource are replaced with the new one as well.

@class SwapResourceAction
@param {Resource} oldResource Resource to remove.
@param {Resource} newResource Resource to add.
@param {ResourceManager} manager Manager to insert the resource into.
@param {string} category Category of the resource.