Skip to content

rolfosian/RolflectionLib-SS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WIP

RolflectionLib - A java library for modding with reflection in Starsector

Features

  • Dynamic runtime subclass generator

    • For subclassing obfuscated classes and interfaces and hooking their methods at runtime. Works with illegal class and method names to help maintain platform and version agnosticism.
    • Examples
  • General utility class With many static helper functions and wrappers to get fields, methods, constructors etc so you don't have to clutter your code with endless try catch blocks.

  • ClassRefs utility dataclass containing various references to cached classes and their methods not exposed by the regular API

  • TreeTraverser UI Component tree utility class. Includes multiple constructors with varying degrees of overhead depending on what is needed.

  • Option Panel Listener

    • Hooks InteractionDialogAPI option buttons and provides an afterOptionSelected method that gets called with selected optionData as second parameter when options are selected. Includes getters on the OptionPanelListener class that is the first parameter to get the current options, the current option, and currently interacted comm directory entry data if a person was interacted with.
  • EngineTex provides granular control over ship engine glow textures.

  • Cloner Clones various objects that implement the Cloneable interface such as the obfuscated ship hull spec object.

  • UI Button hooks, custom dynamic campaign entity descriptions, and more.

About

Crude library for reflection in Starsector

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages