本文整理匯總了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());
}