Interface ResourceFileEditor<T extends VeilResource<?>>

All Known Implementing Classes:
FramebufferFileEditor, TextFileEditor

public interface ResourceFileEditor<T extends VeilResource<?>>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    open(VeilEditorEnvironment environment, T resource)
    Opens the specified resource in the environment.
    void
    Renders this editor to the screen.
    default void
    save(byte[] data, VeilResource<?> resource)
    Saves the specified data to the specified resource and hot reloads it.
  • Method Details

    • render

      void render()
      Renders this editor to the screen.
    • open

      void open(VeilEditorEnvironment environment, T resource)
      Opens the specified resource in the environment.
      Parameters:
      environment - The environment to open the resource in
      resource - The resource to open
    • save

      default void save(byte[] data, VeilResource<?> resource)
      Saves the specified data to the specified resource and hot reloads it.
      Parameters:
      data - The data to write to the resource file
      resource - The resource to write to