dynamically get the fieldid for by popups

This commit is contained in:
Johannes Schmelz
2024-11-27 00:10:59 +01:00
parent 1715926c1c
commit 5b0628da15
4 changed files with 33 additions and 47 deletions

View File

@@ -7,30 +7,14 @@ import com.jme3.network.serializing.Serializable;
*/
@Serializable
public class BuyPropertyRequest extends ClientMessage{
private int propertyId;
/**
* Default constructor for serialization purposes.
*/
private BuyPropertyRequest() { /* empty */ }
/**
* Constructs a BuyPropertyRequest with the specified property ID.
*
* @param propertyId the ID of the property to buy
*/
public BuyPropertyRequest(int propertyId) {
this.propertyId = propertyId;
}
public BuyPropertyRequest() {}
/**
* Gets the ID of the property to buy.
*
* @return the property ID
*/
public int getPropertyId() {
return propertyId;
}
@Override
public void accept(ClientInterpreter interpreter, int from) {