Exemple #1
0
 public void Set(LobbyModificationSetPermissionLevelOptions other)
 {
     if (other != null)
     {
         m_ApiVersion    = LobbyModification.LobbymodificationSetpermissionlevelApiLatest;
         PermissionLevel = other.PermissionLevel;
     }
 }
Exemple #2
0
        /// <summary>
        /// Set the permissions associated with this lobby.
        /// The permissions range from "public" to "invite only" and are described by <see cref="LobbyPermissionLevel" />
        /// </summary>
        /// <param name="options">Options associated with the permission level of the lobby</param>
        /// <returns>
        /// <see cref="Result.Success" /> if setting this parameter was successful
        /// <see cref="Result.IncompatibleVersion" /> if the API version passed in is incorrect
        /// </returns>
        public Result SetPermissionLevel(LobbyModificationSetPermissionLevelOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <LobbyModificationSetPermissionLevelOptionsInternal, LobbyModificationSetPermissionLevelOptions>(ref optionsAddress, options);

            var funcResult = EOS_LobbyModification_SetPermissionLevel(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }