Interface Platform

All Known Implementing Classes:
ClientLauncher

public interface Platform
  • Method Details

    • loadJar

      default ClassLoader loadJar(arc.files.Fi jar, ClassLoader parent) throws Exception
      Dynamically creates a class loader for a jar file. This loader must be child-first.
      Throws:
      Exception
    • updateLobby

      default void updateLobby()
      Steam: Update lobby visibility.
    • inviteFriends

      default void inviteFriends()
      Steam: Show multiplayer friend invite dialog.
    • publish

      default void publish(Publishable pub)
      Steam: Share a map on the workshop.
    • viewListing

      default void viewListing(Publishable pub)
      Steam: View a listing on the workshop.
    • viewListingID

      default void viewListingID(String mapid)
      Steam: View a listing on the workshop by an ID.
    • getWorkshopContent

      default arc.struct.Seq<arc.files.Fi> getWorkshopContent(Class<? extends Publishable> type)
      Steam: Return external workshop maps to be loaded.
    • openWorkshop

      default void openWorkshop()
      Steam: Open workshop for maps.
    • getNet

      default Net.NetProvider getNet()
      Get the networking implementation.
    • createScripts

      default Scripts createScripts()
      Gets the scripting implementation.
    • getScriptContext

      default rhino.Context getScriptContext()
    • updateRPC

      default void updateRPC()
      Update discord RPC.
    • getUUID

      default String getUUID()
      Must be a base64 string 8 bytes in length.
    • shareFile

      default void shareFile(arc.files.Fi file)
      Only used for iOS: open the share menu for a map or save.
    • showFileChooser

      default void showFileChooser(FileChooser.FileChooserParams params)
      Do not call directly; use the builder pattern in FileChooser.
    • hide

      default void hide()
      Hide the app. Android only.
    • beginForceLandscape

      default void beginForceLandscape()
      Forces the app into landscape mode.
    • endForceLandscape

      default void endForceLandscape()
      Stops forcing the app into landscape orientation.