fix: Source generates map item serialization (#1166)

This commit is contained in:
Kamron Batman 2022-09-07 01:13:20 -07:00 • committed by GitHub
parent b5a06d0545
commit b44c69bcee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 1517 additions and 1636 deletions

View file

@ -43,23 +43,35 @@ namespace Server.Network
switch (command)
{
case 1:
map.OnAddPin(from, x, y);
break;
{
map.OnAddPin(from, x, y);
break;
}
case 2:
map.OnInsertPin(from, number, x, y);
break;
{
map.OnInsertPin(from, number, x, y);
break;
}
case 3:
map.OnChangePin(from, number, x, y);
break;
{
map.OnChangePin(from, number, x, y);
break;
}
case 4:
map.OnRemovePin(from, number);
break;
{
map.OnRemovePin(from, number);
break;
}
case 5:
map.OnClearPins(from);
break;
{
map.OnClearPins(from);
break;
}
case 6:
map.OnToggleEditable(from);
break;
{
map.OnToggleEditable(from);
break;
}
}
}