本文整理汇总了C#中Base.Send方法的典型用法代码示例。如果您正苦于以下问题:C# Base.Send方法的具体用法?C# Base.Send怎么用?C# Base.Send使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Base
的用法示例。
在下文中一共展示了Base.Send方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Handle
public void Handle(XI XI, Base.VW.IWISV WI)
{
if (CrossStage)
XI.ResetAllPlayerRAM();
XI.ClearLeftPendingTux();
// TODO: raise new ON event (e.g. Use WQ04 as ZP01 and then jump to R*Z2}), check the risk
// WI.RecvInfTermin();
// Reset board information
XI.Board.UseCardRound = 0;
GotoFire gotoFire = new GotoFire() { Terminal = Terminal };
gotoFire.Telegraph((p) => XI.PushIntoLastUV(XI.Board.Garden.Keys, p));
gotoFire.Telegraph(WI.BCast);
// count how many players have received the F0JM message
int count = XI.Board.Garden.Keys.Count;
while (count > 0)
{
Base.VW.Msgs msg = WI.RecvInfRecv();
if (msg.Msg.StartsWith("F0JM") && XI.MatchedPopFromLastUV(msg.From, "F0JM"))
--count;
else
gotoFire.Telegraph(p => WI.Send(p, 0, msg.From));
}
XI.BlockSetJumpTable(Terminal, "H0TM");
System.Threading.Thread.CurrentThread.Abort();
}
示例2: Send
public static void Send(Base.VW.IWISV WI,
IDictionary<ushort, ImperialRightSemaphore> lookup, ImperialRightSemaphore live)
{
lookup.ToList().ForEach(p => p.Value.Telegraph(q => WI.Send(q, 0, p.Key)));
live.Telegraph(WI.Live);
}