Use Enhanced For loop for SystemMessage parameter iteration.

This commit is contained in:
MobiusDevelopment 2019-07-13 06:33:08 +00:00
parent 0be93db17c
commit a42be21a1c
13 changed files with 13 additions and 39 deletions

View File

@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
packet.writeH(getId());
packet.writeC(_params.length);
SMParam param;
for (int i = 0; i < _paramIndex; i++)
for (SMParam param : _params)
{
param = _params[i];
packet.writeC(param.getType());
switch (param.getType())
{

View File

@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
packet.writeH(getId());
packet.writeC(_params.length);
SMParam param;
for (int i = 0; i < _paramIndex; i++)
for (SMParam param : _params)
{
param = _params[i];
packet.writeC(param.getType());
switch (param.getType())
{

View File

@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
packet.writeH(getId());
packet.writeC(_params.length);
SMParam param;
for (int i = 0; i < _paramIndex; i++)
for (SMParam param : _params)
{
param = _params[i];
packet.writeC(param.getType());
switch (param.getType())
{

View File

@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
packet.writeH(getId());
packet.writeC(_params.length);
SMParam param;
for (int i = 0; i < _paramIndex; i++)
for (SMParam param : _params)
{
param = _params[i];
packet.writeC(param.getType());
switch (param.getType())
{

View File

@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
packet.writeH(getId());
packet.writeC(_params.length);
SMParam param;
for (int i = 0; i < _paramIndex; i++)
for (SMParam param : _params)
{
param = _params[i];
packet.writeC(param.getType());
switch (param.getType())
{

View File

@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
packet.writeH(getId());
packet.writeC(_params.length);
SMParam param;
for (int i = 0; i < _paramIndex; i++)
for (SMParam param : _params)
{
param = _params[i];
packet.writeC(param.getType());
switch (param.getType())
{

View File

@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
packet.writeH(getId());
packet.writeC(_params.length);
SMParam param;
for (int i = 0; i < _paramIndex; i++)
for (SMParam param : _params)
{
param = _params[i];
packet.writeC(param.getType());
switch (param.getType())
{

View File

@ -366,10 +366,8 @@ public final class SystemMessage implements IClientOutgoingPacket
packet.writeD(_smId.getId());
packet.writeD(_params.length);
SMParam param;
for (int i = 0; i < _paramIndex; i++)
for (SMParam param : _params)
{
param = _params[i];
packet.writeD(param.getType());
switch (param.getType())
{

View File

@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
packet.writeH(getId());
packet.writeC(_params.length);
SMParam param;
for (int i = 0; i < _paramIndex; i++)
for (SMParam param : _params)
{
param = _params[i];
packet.writeC(param.getType());
switch (param.getType())
{

View File

@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
packet.writeH(getId());
packet.writeC(_params.length);
SMParam param;
for (int i = 0; i < _paramIndex; i++)
for (SMParam param : _params)
{
param = _params[i];
packet.writeC(param.getType());
switch (param.getType())
{

View File

@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
packet.writeH(getId());
packet.writeC(_params.length);
SMParam param;
for (int i = 0; i < _paramIndex; i++)
for (SMParam param : _params)
{
param = _params[i];
packet.writeC(param.getType());
switch (param.getType())
{

View File

@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
packet.writeH(getId());
packet.writeC(_params.length);
SMParam param;
for (int i = 0; i < _paramIndex; i++)
for (SMParam param : _params)
{
param = _params[i];
packet.writeC(param.getType());
switch (param.getType())
{

View File

@ -411,10 +411,8 @@ public final class SystemMessage implements IClientOutgoingPacket
packet.writeH(getId());
packet.writeC(_params.length);
SMParam param;
for (int i = 0; i < _paramIndex; i++)
for (SMParam param : _params)
{
param = _params[i];
packet.writeC(param.getType());
switch (param.getType())
{