本文整理汇总了C#中IController.ViewProStopObjectUpdate方法的典型用法代码示例。如果您正苦于以下问题:C# IController.ViewProStopObjectUpdate方法的具体用法?C# IController.ViewProStopObjectUpdate怎么用?C# IController.ViewProStopObjectUpdate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IController
的用法示例。
在下文中一共展示了IController.ViewProStopObjectUpdate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ScenarioControllerLoop
//.........这里部分代码省略.........
_viewpro_attr_update.CapabilityRangeRings = null;
}
if (((AttributeCollectionValue)vpEvent.parameters["Attributes"]).attributes.ContainsKey("VulnerabilityRangeRings"))
{
Console.WriteLine("Vulnerability Range Rings received in VPAU");
CustomAttributesValue acv = ((AttributeCollectionValue)vpEvent.parameters["Attributes"]).attributes["VulnerabilityRangeRings"] as CustomAttributesValue;
_viewpro_attr_update.VulnerabilityRangeRings = new Dictionary<string, RangeRingInfo>();
Console.WriteLine("{0} ", ((StringValue)vpEvent.parameters["ObjectID"]).value);
foreach (string vulnerabilityName in acv.attributes.Keys)
{
//do stuff!
_viewpro_attr_update.VulnerabilityRangeRings.Add(vulnerabilityName, new RangeRingInfo(acv[vulnerabilityName] as RangeRingDisplayValue));
}
}
else
{
_viewpro_attr_update.VulnerabilityRangeRings = null;
}
receiver.ViewProAttributeUpdate(_viewpro_attr_update);
}
}
}
catch (Exception e)
{
throw new ControllerException(Fmt_ErrorMsg("ViewProAttributeUpdate", e.Message));
}
break;
case "ViewProStopObjectUpdate":
try
{
receiver.ViewProStopObjectUpdate(((StringValue)vpEvent["ObjectID"]).value);
}
catch (Exception e)
{
throw new ControllerException(Fmt_ErrorMsg("ViewProStopObjectUpdate", e.Message));
}
break;
case "ClientRemoveObject":
try
{
if (((StringValue)vpEvent.parameters["TargetPlayer"]).value == DDD_Global.Instance.PlayerID)
{
receiver.RemoveObject(((StringValue)vpEvent.parameters["ObjectID"]).value);
}
}
catch (Exception e)
{
throw new ControllerException(Fmt_ErrorMsg("ClientRemoveObject", e.Message));
}
break;
case "TextChat":