#W# Fixed serialization but with PlayerConstructed.
This commit is contained in:
parent
1d5ccf99dc
commit
f698d96dbb
4 changed files with 7 additions and 4 deletions
|
|
@ -616,6 +616,9 @@ namespace Server.Items
|
||||||
|
|
||||||
if ( GetSaveFlag( flags, SaveFlag.MedAllowance ) )
|
if ( GetSaveFlag( flags, SaveFlag.MedAllowance ) )
|
||||||
writer.WriteEncodedInt( (int) m_Meditate );
|
writer.WriteEncodedInt( (int) m_Meditate );
|
||||||
|
|
||||||
|
if ( GetSaveFlag( flags, SaveFlag.PlayerConstructed ) )
|
||||||
|
writer.Write( (bool) m_PlayerConstructed );
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Deserialize( GenericReader reader )
|
public override void Deserialize( GenericReader reader )
|
||||||
|
|
|
||||||
|
|
@ -1450,7 +1450,7 @@ namespace Server.Items
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( GetSaveFlag( flags, SaveFlag.PlayerConstructed ) )
|
if ( GetSaveFlag( flags, SaveFlag.PlayerConstructed ) )
|
||||||
m_PlayerConstructed = reader.ReadBool();
|
m_PlayerConstructed = true;
|
||||||
|
|
||||||
if( GetSaveFlag( flags, SaveFlag.Slayer2 ) )
|
if( GetSaveFlag( flags, SaveFlag.Slayer2 ) )
|
||||||
m_Slayer2 = (SlayerName)reader.ReadInt();
|
m_Slayer2 = (SlayerName)reader.ReadInt();
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ namespace Server.Misc
|
||||||
public class AutoSave : Timer
|
public class AutoSave : Timer
|
||||||
{
|
{
|
||||||
private static TimeSpan m_Delay = TimeSpan.FromMinutes( Server.Misc.Settings.SaveInterval() );
|
private static TimeSpan m_Delay = TimeSpan.FromMinutes( Server.Misc.Settings.SaveInterval() );
|
||||||
private static TimeSpan m_Warning = TimeSpan.Zero;
|
private static TimeSpan m_Warning = TimeSpan.FromSeconds( 15.0 );
|
||||||
|
|
||||||
public static void Initialize()
|
public static void Initialize()
|
||||||
{
|
{
|
||||||
|
|
@ -184,4 +184,4 @@ namespace Server.Misc
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ namespace Server.Misc
|
||||||
public static double SaveInterval()
|
public static double SaveInterval()
|
||||||
{
|
{
|
||||||
// How many minutes does your server save its information?
|
// How many minutes does your server save its information?
|
||||||
return 30.0;
|
return 5.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool CastSpellsHoldingThings()
|
public static bool CastSpellsHoldingThings()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue