fix: Source generates map item serialization (#1166)
This commit is contained in:
parent
b5a06d0545
commit
b44c69bcee
21 changed files with 1517 additions and 1636 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue