= Data Structures formatting update

This commit is contained in:
Matthew Cech
2019-06-19 21:32:42 -07:00
parent 78efa4ad8f
commit ba843ca645
22 changed files with 60 additions and 60 deletions
+2 -2
View File
@@ -121,7 +121,7 @@ public abstract class BaseLocFile
if(stringStore == null)
return input;
String value = stringStore.GetKey(input);
String value = stringStore.getKey(input);
if(value == null || value.trim().length() < 1)
return input;
@@ -206,6 +206,6 @@ public abstract class BaseLocFile
FileUtils.AcquireAllFiles(KittySourceDirectory).forEach((path) -> TryStripSpecified(path, localizeList));
for(LocInfo toStub : localizeList)
stringStore.AddKeyValue(toStub.file, toStub.phrase, toStub.phrase);
stringStore.addKeyValue(toStub.file, toStub.phrase, toStub.phrase);
}
}
+2 -2
View File
@@ -66,8 +66,8 @@ public class CharacterManager
}
}
characters.add(new KittyCharacter(user, name, bio, refImage, uniqueID.Get()));
uniqueID.Add(1);
characters.add(new KittyCharacter(user, name, bio, refImage, uniqueID.get()));
uniqueID.add(1);
return true;
}
+1 -1
View File
@@ -43,7 +43,7 @@ public abstract class Command
//TODO: ADD CHANNEL CHECK HERE
if(user.GetRole().getValue() >= roleLevel.getValue())
if(user.getRole().getValue() >= roleLevel.getValue())
{
return true;
}
+2 -2
View File
@@ -77,7 +77,7 @@ public class CommandManager
public boolean InvokeOnNewThread(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response responseContext)
{
// This is here to prevent spinning up a thread if this wasn't even a command.
if(input == null || !input.IsValid())
if(input == null || !input.isValid())
return false;
Command command = commands.get(input.key);
@@ -99,7 +99,7 @@ public class CommandManager
// Calls the command specified with the key, providing user information arguments, etc.
void Invoke(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response responseContext)
{
if(input == null || !input.IsValid())
if(input == null || !input.isValid())
return;
Command command = commands.get(input.key);
+1 -1
View File
@@ -47,7 +47,7 @@ public class LocCommands extends BaseLocFile
public static ArrayList<String> GetUnlocalizedCommands()
{
ArrayList<String> raw = new ArrayList<>();
instance.stringStore.ForEach((pair) -> raw.add((String)((Pair<?, ?>)pair).First ));
instance.stringStore.forEach((pair) -> raw.add((String)((Pair<?, ?>)pair).First ));
return raw;
}
+1 -1
View File
@@ -172,7 +172,7 @@ public class ObjectBuilderFactory
{
KittyUser cachedUser = userCache.get(uid);
if(cachedUser != null)
role = cachedUser.GetRole();
role = cachedUser.getRole();
}
return role;
+1 -1
View File
@@ -39,7 +39,7 @@ public class RPManager
public void addLine(KittyChannel channel, KittyUser user, UserInput input)
{
if(logs.containsKey(Long.parseLong(channel.uniqueID)) && !input.IsValid())
if(logs.containsKey(Long.parseLong(channel.uniqueID)) && !input.isValid())
logs.get(Long.parseLong(channel.uniqueID)).addLine(user, input.message);
}