-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from AndyTechGuy/multiMarketFixes
Fix market operations to work on multiplayer mode
- Loading branch information
Showing
9 changed files
with
187 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/main/java/org/terasology/metalrenegades/economy/events/MarketTransactionRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.terasology.metalrenegades.economy.events; | ||
|
||
import org.terasology.entitySystem.event.Event; | ||
import org.terasology.metalrenegades.economy.ui.MarketItem; | ||
import org.terasology.network.ServerEvent; | ||
|
||
/** | ||
* A client-to-server event which requests the transaction of a particular item. | ||
*/ | ||
@ServerEvent | ||
public class MarketTransactionRequest implements Event { | ||
|
||
/** | ||
* The item to be bought/sold. | ||
*/ | ||
public MarketItem item; | ||
|
||
/** | ||
* The type of transaction to take place. | ||
*/ | ||
public TransactionType type; | ||
|
||
public MarketTransactionRequest(MarketItem item, TransactionType type) { | ||
this.item = item; | ||
this.type = type; | ||
} | ||
|
||
public MarketTransactionRequest() { | ||
|
||
} | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/org/terasology/metalrenegades/economy/events/UpdateMarketScreenEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.terasology.metalrenegades.economy.events; | ||
|
||
import org.terasology.entitySystem.event.Event; | ||
|
||
public class UpdateMarketScreenEvent implements Event { | ||
|
||
public UpdateMarketScreenEvent() { } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.