本文整理汇总了C#中IController.WhiteboardScreenView方法的典型用法代码示例。如果您正苦于以下问题:C# IController.WhiteboardScreenView方法的具体用法?C# IController.WhiteboardScreenView怎么用?C# IController.WhiteboardScreenView使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IController
的用法示例。
在下文中一共展示了IController.WhiteboardScreenView方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ScenarioControllerLoop
//.........这里部分代码省略.........
{
throw new ControllerException(Fmt_ErrorMsg("Whiteboard", e.Message));
}
break;
case "WhiteboardUndo":
try
{
string object_id = ((StringValue)vpEvent.parameters["ObjectID"]).value;
string user_id = ((StringValue)vpEvent.parameters["UserID"]).value;
string target_id = ((StringValue)vpEvent.parameters["TargetUserID"]).value;
if ((user_id != null) && (target_id != null))
{
receiver.WhiteboardUndo(object_id, user_id, target_id);
}
}
catch (Exception e)
{
throw new ControllerException(Fmt_ErrorMsg("Whiteboard", e.Message));
}
break;
case "ClientMeasure_ScreenView":
try
{
string user_id = ((StringValue)vpEvent.parameters["UserID"]).value;
int originX = ((IntegerValue)vpEvent.parameters["Origin-X"]).value;
int originY = ((IntegerValue)vpEvent.parameters["Origin-Y"]).value;
int screenSizeWidth = ((IntegerValue)vpEvent.parameters["ScreenSizeWidth"]).value;
int screenSizeHeight = ((IntegerValue)vpEvent.parameters["ScreenSizeHeight"]).value;
double screenZoom = ((DoubleValue)vpEvent.parameters["ScreenZoom"]).value;
if (user_id != null)
{
receiver.WhiteboardScreenView(user_id, originX, originY, screenSizeWidth, screenSizeHeight, screenZoom);
}
}
catch (Exception e)
{
throw new ControllerException(Fmt_ErrorMsg("Whiteboard", e.Message));
}
break;
case "WhiteboardSyncScreenView":
try
{
string user_id = ((StringValue)vpEvent.parameters["UserID"]).value;
string whiteboard_id = ((StringValue)vpEvent.parameters["WhiteboardID"]).value;
string target_id = ((StringValue)vpEvent.parameters["TargetUserID"]).value;
if ((user_id != null) && (target_id != null) & (whiteboard_id != null))
{
receiver.WhiteboardSyncScreenView(user_id, target_id, whiteboard_id);
}
}
catch (Exception e)
{
throw new ControllerException(Fmt_ErrorMsg("Whiteboard", e.Message));
}
break;
case "HandshakeAvailablePlayers":
try
{
if (((StringValue)vpEvent.parameters["TargetTerminalID"]).value == DDD_Global.Instance.TerminalID && DDD_Global.Instance.HasAuthenticated)
{