Package host.anzo.eossdk.eos.sdk.lobby
Class EOS_LobbyModification
java.lang.Object
com.sun.jna.PointerType
host.anzo.eossdk.eos.sdk.lobby.EOS_LobbyModification
- All Implemented Interfaces:
com.sun.jna.NativeMapped,AutoCloseable
To modify lobbies or the lobby member data, you must call EOS_Lobby_UpdateLobbyModification to create a Lobby Modification handle. To modify that handle, call
EOS_HLobbyModification methods. Once you are finished, call EOS_Lobby_UpdateLobby with your handle. You must then release your Lobby Modification
handle by calling EOS_LobbyModification_Release.
- Since:
- 8/16/2023
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAssociate an attribute with this lobby An attribute is something may be public or private with the lobby.Associate an attribute with a member of the lobby Lobby member data is always private to the lobbyvoidclose()voidrelease()Remove an attribute associated with the lobbyRemove an attribute associated with of member of the lobbySet the bucket ID associated with this lobby.Allows enabling or disabling invites for this lobby.Set the maximum number of members allowed in this lobby.Set the permissions associated with this lobby.Methods inherited from class com.sun.jna.PointerType
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
-
Constructor Details
-
EOS_LobbyModification
public EOS_LobbyModification(com.sun.jna.Pointer address) -
EOS_LobbyModification
public EOS_LobbyModification()
-
-
Method Details
-
setBucketId
Set the bucket ID associated with this lobby. Values such as region, game mode, etc can be combined here depending on game need. Setting this is strongly recommended to improve search performance.- Parameters:
options- Options associated with the bucket ID of the lobby- Returns:
EOS_EResult.EOS_Successif setting this parameter was successful
EOS_EResult.EOS_InvalidParametersif the bucket ID is invalid or null
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect
-
setPermissionLevel
Set the permissions associated with this lobby. The permissions range from "public" to "invite only" and are described by EOS_ELobbyPermissionLevel- Parameters:
options- Options associated with the permission level of the lobby- Returns:
EOS_EResult.EOS_Successif setting this parameter was successful
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect
-
setMaxMembers
Set the maximum number of members allowed in this lobby. When updating the lobby, it is not possible to reduce this number below the current number of existing members- Parameters:
options- Options associated with max number of members in this lobby- Returns:
EOS_EResult.EOS_Successif setting this parameter was successful
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect
-
setInvitesAllowed
Allows enabling or disabling invites for this lobby. The lobby will also need to have `bPresenceEnabled` true.- Parameters:
options- Options associated with invites allowed flag for this lobby.- Returns:
EOS_EResult.EOS_Successif setting this parameter was successful
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect
-
addAttribute
Associate an attribute with this lobby An attribute is something may be public or private with the lobby. If public, it can be queried for in a search, otherwise the data remains known only to lobby members- Parameters:
options- Options to set the attribute and its visibility state- Returns:
EOS_EResult.EOS_Successif setting this parameter was successful
EOS_EResult.EOS_InvalidParametersif the attribute is missing information or otherwise invalid
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect
-
removeAttribute
Remove an attribute associated with the lobby- Parameters:
options- Specify the key of the attribute to remove- Returns:
EOS_EResult.EOS_Successif removing this parameter was successful
EOS_EResult.EOS_InvalidParametersif the key is null or empty
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect
-
addMemberAttribute
Associate an attribute with a member of the lobby Lobby member data is always private to the lobby- Parameters:
options- Options to set the attribute and its visibility state- Returns:
EOS_EResult.EOS_Successif setting this parameter was successful
EOS_EResult.EOS_InvalidParametersif the attribute is missing information or otherwise invalid
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect
-
removeMemberAttribute
public EOS_EResult removeMemberAttribute(EOS_LobbyModification_RemoveMemberAttributeOptions options) Remove an attribute associated with of member of the lobby- Parameters:
options- Specify the key of the member attribute to remove- Returns:
EOS_EResult.EOS_Successif removing this parameter was successful
EOS_EResult.EOS_InvalidParametersif the key is null or empty
EOS_EResult.EOS_IncompatibleVersionif the API version passed in is incorrect
-
release
public void release() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-