Adds BufferReader and BufferWriter. Updates UOP handling. (#101)
This commit is contained in:
parent
2c0d97cd36
commit
038c3be258
98 changed files with 2458 additions and 2185 deletions
|
|
@ -1650,7 +1650,7 @@ namespace Server.Multis
|
|||
EventSink.WorldSave += EventSink_WorldSave;
|
||||
}
|
||||
|
||||
private static void EventSink_WorldSave(WorldSaveEventArgs e)
|
||||
private static void EventSink_WorldSave(bool message)
|
||||
{
|
||||
new UpdateAllTimer().Start();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -115,10 +115,8 @@ namespace Server.Misc
|
|||
return false;
|
||||
}
|
||||
|
||||
public static void EventSink_Login(LoginEventArgs e)
|
||||
public static void EventSink_Login(Mobile from)
|
||||
{
|
||||
Mobile from = e.Mobile;
|
||||
|
||||
if (!IsStranded(from))
|
||||
return;
|
||||
|
||||
|
|
@ -153,7 +151,7 @@ namespace Server.Misc
|
|||
|
||||
int x = p.X, y = p.Y;
|
||||
int z;
|
||||
bool canFit = false;
|
||||
bool canFit;
|
||||
|
||||
z = map.GetAverageZ(x, y);
|
||||
canFit = map.CanSpawnMobile(x, y, z);
|
||||
|
|
@ -175,4 +173,4 @@ namespace Server.Misc
|
|||
from.Location = new Point3D(x, y, z);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1745,7 +1745,7 @@ namespace Server.Multis
|
|||
Fixtures[i].m_OffsetX = reader.ReadShort();
|
||||
Fixtures[i].m_OffsetY = reader.ReadShort();
|
||||
Fixtures[i].m_OffsetZ = reader.ReadShort();
|
||||
Fixtures[i].m_Flags = reader.ReadInt();
|
||||
Fixtures[i].m_Flags = (TileFlag)reader.ReadInt();
|
||||
}
|
||||
|
||||
Revision = reader.ReadInt();
|
||||
|
|
@ -1793,7 +1793,7 @@ namespace Server.Multis
|
|||
writer.Write(ent.m_OffsetX);
|
||||
writer.Write(ent.m_OffsetY);
|
||||
writer.Write(ent.m_OffsetZ);
|
||||
writer.Write(ent.m_Flags);
|
||||
writer.Write((int)ent.m_Flags);
|
||||
}
|
||||
|
||||
writer.Write(Revision);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue