mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Support saving/restoring game state that has creature tokens.
This commit is contained in:
@@ -87,6 +87,13 @@ public class ImageKeys {
|
||||
return ImageKeys.TOKEN_PREFIX + tokenName;
|
||||
}
|
||||
|
||||
public static String getTokenImageName(String tokenKey) {
|
||||
if (!tokenKey.startsWith(ImageKeys.TOKEN_PREFIX)) {
|
||||
return null;
|
||||
}
|
||||
return tokenKey.substring(ImageKeys.TOKEN_PREFIX.length());
|
||||
}
|
||||
|
||||
public static File getImageFile(String key) {
|
||||
if (StringUtils.isEmpty(key)) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user