Updating Guid stuff.
This commit is contained in:
@@ -1671,7 +1671,6 @@ ServerLobbyThread::EstablishSession(SessionWrapper session)
|
|||||||
&netInitAck->yourSessionId,
|
&netInitAck->yourSessionId,
|
||||||
(char *)&sessionId,
|
(char *)&sessionId,
|
||||||
boost::uuids::uuid::static_size());
|
boost::uuids::uuid::static_size());
|
||||||
// initAckData.sessionId = session.sessionData->GetId(); // TODO: currently unused.
|
|
||||||
netInitAck->yourPlayerId = session.playerData->GetUniqueId();
|
netInitAck->yourPlayerId = session.playerData->GetUniqueId();
|
||||||
GetSender().Send(session.sessionData, ack);
|
GetSender().Send(session.sessionData, ack);
|
||||||
|
|
||||||
|
|||||||
@@ -19,29 +19,32 @@ import org.bn.types.*;
|
|||||||
@ASN1BoxedType ( name = "Guid" )
|
@ASN1BoxedType ( name = "Guid" )
|
||||||
public class Guid implements IASN1PreparedElement {
|
public class Guid implements IASN1PreparedElement {
|
||||||
|
|
||||||
@ASN1Integer( name = "Guid" )
|
@ASN1OctetString( name = "Guid" )
|
||||||
@ASN1ValueRangeConstraint (
|
|
||||||
|
@ASN1SizeConstraint ( max = 16L )
|
||||||
min = 0L,
|
|
||||||
|
private byte[] value = null;
|
||||||
max = 4294967295L
|
|
||||||
|
|
||||||
)
|
|
||||||
|
|
||||||
private Long value;
|
|
||||||
|
|
||||||
public Guid() {
|
public Guid() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Guid(Long value) {
|
public Guid(byte[] value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setValue(Long value) {
|
public Guid(BitString value) {
|
||||||
this.value = value;
|
setValue(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getValue() {
|
public void setValue(byte[] value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValue(BitString btStr) {
|
||||||
|
this.value = btStr.getValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte[] getValue() {
|
||||||
return this.value;
|
return this.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user