This repository was archived by the owner on Jan 8, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/main/java/io/github/spair/byond/dmi Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,10 @@ public class Dmi implements Iterable<Map.Entry<String, DmiState>> {
3535 private int spriteWidth = DEFAULT_SPRITE_SIZE ;
3636 private int spriteHeight = DEFAULT_SPRITE_SIZE ;
3737
38- @ Setter (AccessLevel .NONE ) private Map <String , DmiState > states = new LinkedHashMap <>();
39- @ Setter (AccessLevel .NONE ) private Set <String > duplicateStatesNames = new HashSet <>();
38+ @ Setter (AccessLevel .NONE )
39+ private Map <String , DmiState > states = new LinkedHashMap <>();
40+ @ Setter (AccessLevel .NONE )
41+ private Set <String > duplicateStatesNames = new HashSet <>();
4042
4143 public Dmi (final String name , final int totalWidth , final int totalHeight ,
4244 final int spriteWidth , final int spriteHeight , final Map <String , DmiState > states ) {
@@ -81,6 +83,11 @@ public DmiState removeState(final String stateName) {
8183 return states .remove (stateName );
8284 }
8385
86+ public void clearStates () {
87+ states .clear ();
88+ duplicateStatesNames .clear ();
89+ }
90+
8491 /**
8592 * Returns state with provided name or empty optional if not found.
8693 *
You can’t perform that action at this time.
0 commit comments