Skip to content

Commit

Permalink
More javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Dgzt committed Sep 4, 2024
1 parent 57479c3 commit cc97063
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,25 @@

public interface CustomComponentConverter {

/**
* @return The component type of custom component.
*/
Component.Type getComponentType();

/**
* Converts component into map for persisting.
*
* @param component The component.
* @return The map.
*/
OrderedMap<String, String> convert(Component component);

/**
* Converts map into custom component.
*
* @param gameObject The game object.
* @param componentProperties The properties of custom component.
* @return The custom component.
*/
Component convert(GameObject gameObject, OrderedMap<String, String> componentProperties);
}

0 comments on commit cc97063

Please sign in to comment.