本文整理匯總了C#中Springie.Client.TasClient.Say方法的典型用法代碼示例。如果您正苦於以下問題:C# TasClient.Say方法的具體用法?C# TasClient.Say怎麽用?C# TasClient.Say使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Springie.Client.TasClient
的用法示例。
在下文中一共展示了TasClient.Say方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: SayBattle
public static void SayBattle(TasClient tas, Spring spring, string text, bool ingame)
{
tas.Say(TasClient.SayPlace.Battle, "", text, true);
if (spring.IsRunning && ingame) spring.SayGame(text);
}
示例2: Respond
public static void Respond(TasClient tas, Spring spring, TasSayEventArgs e, string text)
{
TasClient.SayPlace p = TasClient.SayPlace.User;
bool emote = false;
if (e.Place == TasSayEventArgs.Places.Battle) {
p = TasClient.SayPlace.Battle;
emote = true;
}
if (e.Place == TasSayEventArgs.Places.Game && spring.IsRunning) spring.SayGame(text);
else tas.Say(p, e.UserName, text, emote);
}
示例3: Apply
public void Apply(TasClient tas, Ladder ladder)
{
Battle b = tas.GetBattle();
if (b == null) return;
BattleDetails d = b.Details;
if (startingMetal.HasValue) d.StartingMetal = startingMetal.Value;
if (startingEnergy.HasValue) d.StartingEnergy = startingEnergy.Value;
if (maxUnits.HasValue) d.MaxUnits = maxUnits.Value;
if (startPos.HasValue) d.StartPos = startPos.Value;
if (endCondition.HasValue) d.EndCondition = endCondition.Value;
if (limitDgun.HasValue) d.LimitDgun = limitDgun.Value;
if (diminishingMM.HasValue) d.DiminishingMM = diminishingMM.Value;
if (ghostedBuildings.HasValue) d.GhostedBuildings = ghostedBuildings.Value;
d.Validate();
int mint, maxt;
if (ladder != null) d = ladder.CheckBattleDetails(d, out mint, out maxt);
tas.UpdateBattleDetails(d);
if (enableAllUnits) tas.EnableAllUnits();
if (disabledUnits.Length > 0) tas.DisableUnits(UnitInfo.ToStringList(disabledUnits));
foreach (string s in perform) tas.Say(TasClient.SayPlace.Battle, "", s, false);
}
示例4: SayLines
/************************************************************************/
/* PRIVATE METHODS */
/************************************************************************/
private void SayLines(string text, TasClient tas, TasSayEventArgs e)
{
string[] lines = text.Split(new char[] {'\n'}, StringSplitOptions.RemoveEmptyEntries);
foreach (string l in lines) tas.Say(TasClient.SayPlace.User, e.UserName, l, false);
}
示例5: Apply
public void Apply(TasClient tas, Ladder ladder)
{
var b = tas.GetBattle();
if (b == null) return;
var d = b.Details;
int mint, maxt;
if (ladder != null) d = ladder.CheckBattleDetails(d, out mint, out maxt);
tas.UpdateBattleDetails(d);
if (enableAllUnits) tas.EnableAllUnits();
if (disabledUnits.Length > 0) tas.DisableUnits(UnitInfo.ToStringList(disabledUnits));
foreach (var s in perform) tas.Say(TasClient.SayPlace.Battle, "", s, false);
}