Exemplo n.º 1
0
 /// <summary>
 /// Set a new session name.
 /// @see SetSessionOwner
 /// </summary>
 /// <param name="newName">The new session name.</param>
 public static void SetSessionName(string newName)
 {
     using (FStringUnsafe newNameUnsafe = FStringPool.New(newName))
     {
         Native_FApp.SetSessionName(ref newNameUnsafe.Array);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Set a new session owner.
 /// @see SetSessionName
 /// </summary>
 /// <param name="newOwner">The name of the new owner.</param>
 public static void SetSessionOwner(string newOwner)
 {
     using (FStringUnsafe newOwnerUnsafe = FStringPool.New(newOwner))
     {
         Native_FApp.SetSessionOwner(ref newOwnerUnsafe.Array);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Check whether the specified user is authorized to interact with this session.
 /// @see AuthorizeUser, DenyUser, DenyAllUsers
 /// </summary>
 /// <param name="userName">The name of the user to check.</param>
 /// <returns>true if the user is authorized, false otherwise.</returns>
 public static bool IsAuthorizedUser(string userName)
 {
     using (FStringUnsafe userNameUnsafe = FStringPool.New(userName))
     {
         return(Native_FApp.IsAuthorizedUser(ref userNameUnsafe.Array));
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Remove the specified user from the list of authorized session users.
 /// @see AuthorizeUser, DenyAllUsers, IsAuthorizedUser
 /// </summary>
 /// <param name="userName">The name of the user to remove.</param>
 public static void DenyUser(string userName)
 {
     using (FStringUnsafe userNameUnsafe = FStringPool.New(userName))
     {
         Native_FApp.DenyUser(ref userNameUnsafe.Array);
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// Sets the name of the current project.
 /// </summary>
 /// <param name="projectName">Name of the current project.</param>
 public static void SetProjectName(string projectName)
 {
     using (FStringUnsafe projectNameUnsafe = FStringPool.New(projectName))
     {
         Native_FApp.SetProjectName(ref projectNameUnsafe.Array);
     }
 }
Exemplo n.º 6
0
 /// <summary>
 /// Gets the identifier for the unreal engine
 /// </summary>
 public static string GetEpicProductIdentifier()
 {
     using (FStringUnsafe resultUnsafe = FStringPool.New())
     {
         Native_FApp.GetEpicProductIdentifier(ref resultUnsafe.Array);
         return(resultUnsafe.Value);
     }
 }
Exemplo n.º 7
0
 /// <summary>
 /// Gets the date at which this application was built.
 /// </summary>
 /// <returns>Build date string.</returns>
 public static string GetBuildDate()
 {
     using (FStringUnsafe resultUnsafe = FStringPool.New())
     {
         Native_FApp.GetBuildDate(ref resultUnsafe.Array);
         return(resultUnsafe.Value);
     }
 }
Exemplo n.º 8
0
 /// <summary>
 /// Gets the name of the user who owns the session that this application is part of, if any.
 ///
 /// If this application is part of a session that was launched from UFE, this function
 /// will return the name of the user that launched the session. If this application is
 /// not part of a session, this function will return the name of the local user account
 /// under which the application is running.
 /// </summary>
 /// <returns>Name of session owner.</returns>
 public static string GetSessionOwner()
 {
     using (FStringUnsafe resultUnsafe = FStringPool.New())
     {
         Native_FApp.GetSessionOwner(ref resultUnsafe.Array);
         return(resultUnsafe.Value);
     }
 }
Exemplo n.º 9
0
 public void Dispose()
 {
     Native_FScriptArray.Destroy(ref Array);
     if (isPooled)
     {
         FStringPool.Return(this);
     }
 }