本文整理汇总了C#中Server.Mobiles.PlayerMobile.SendEverything方法的典型用法代码示例。如果您正苦于以下问题:C# PlayerMobile.SendEverything方法的具体用法?C# PlayerMobile.SendEverything怎么用?C# PlayerMobile.SendEverything使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.Mobiles.PlayerMobile
的用法示例。
在下文中一共展示了PlayerMobile.SendEverything方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RestoreState
//.........这里部分代码省略.........
if (!m.EquipItem(item))
{
pack.DropItem(item);
}
}
else
{
bank.DropItem(item);
}
item.SetLastMoved();
item.UpdateTotals();
item.Delta(ItemDelta.Update);
}
else if (Cleanup.IsBuggable(item))
{
--idxCreated;
++idxDeleted;
item.Delete();
}
else
{
item.Internalize();
}
}
if (oldPack != null && oldPack != pack && !restored.ContainsKey(oldPack))
{
oldPack.Delete();
}
if (oldBank != null && oldBank != bank && !restored.ContainsKey(oldBank))
{
oldBank.Delete();
}
if (log != null)
{
log.AppendLine();
}
foreach (var kv in restored)
{
if (kv.Key.Deleted)
{
if (log != null)
{
log.AppendLine("DELETED:\tItem[{0}]\t\tParent[{1}]", kv.Key, kv.Value);
}
}
else if (kv.Key.RootParent == m && kv.Key.Map == Map.Internal && kv.Key.Location == Point3D.Zero)
{
if (log != null)
{
log.AppendLine("INTERNAL:\tItem[{0}]\t\tParent[{1}]", kv.Key, kv.Value);
}
}
else if (kv.Key.RootParent != m)
{
if (log != null)
{
log.AppendLine("IGNORED:\tItem[{0}]\t\tParent[{1}]", kv.Key, kv.Value);
}
}
else
{
if (log != null)
{
log.AppendLine("RESTORED:\tItem[{0}]\t\tParent[{1}]", kv.Key, kv.Key.Parent);
}
}
}
restored.Clear();
m.SendEverything();
});
});
created = idxCreated;
deleted = idxDeleted;
ignored = idxIgnored;
moved = idxMoved;
if (log == null)
{
return;
}
log.AppendLine();
log.AppendLine(
"RESULT:\tCreated[{0}]\t\tDeleted[{1}]\t\tIgnored[{2}]\t\tMoved[{3}]",
created,
deleted,
ignored,
moved);
logFile.AppendText(false, log.ToString());
}