예제 #1
0
void Client::inventoryAction(InventoryAction *a)
{
	/*
		Send it to the server
	*/
	sendInventoryAction(a);

	/*
		Predict some local inventory changes
	*/
	a->clientApply(this, this);

	// Remove it
	delete a;
}
void Client::inventoryAction(InventoryAction *a)
{
	sendInventoryAction(a);
}