本文整理汇总了C#中RoomData.getId方法的典型用法代码示例。如果您正苦于以下问题:C# RoomData.getId方法的具体用法?C# RoomData.getId怎么用?C# RoomData.getId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RoomData
的用法示例。
在下文中一共展示了RoomData.getId方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: onUserJoinedRoom
public void onUserJoinedRoom(RoomData eventObj, String username)
{
_page.UpdateStatus(username + " joined " + eventObj.getId());
Deployment.Current.Dispatcher.BeginInvoke(() =>
{
_page.UnLockGameboard();
_page.UpdateStatus("Click on any block to start Game");
});
}
示例2: onUserChangeRoomProperty
public void onUserChangeRoomProperty(RoomData roomData, string sender, Dictionary<String, Object> properties)
{
_page.showResult("Notification for User Changed Room Propert received");
_page.showResult(roomData.getId());
_page.showResult(sender);
foreach (KeyValuePair<string, object> entry in properties)
{
_page.showResult("KEY:" + entry.Key);
_page.showResult("VALUE:" + entry.Value.ToString());
}
}
示例3: onUserChangeRoomProperty
public void onUserChangeRoomProperty(RoomData roomData, string sender, Dictionary<String, System.Object> properties)
{
Log("Notification for User Changed Room Property received");
Log(roomData.getId());
Log(sender);
foreach (KeyValuePair<String, System.Object> entry in properties)
{
Log("KEY:" + entry.Key);
Log("VALUE:" + entry.Value.ToString());
}
}
示例4: onUserLeftRoom
public void onUserLeftRoom(RoomData eventObj, String username)
{
if (eventObj.getId().Equals(GlobalContext.GameRoomId))
{
if (!GlobalContext.localUsername.Equals(username))
{
if(OpponentLeftRoom!=null)
Deployment.Current.Dispatcher.BeginInvoke(new UICallback(OpponentLeftRoom));
}
}
}
示例5: onUserJoinedRoom
public void onUserJoinedRoom(RoomData eventObj, String username)
{
_page.showResult(username + " joined " + eventObj.getId());
}
示例6: onRoomCreated
//NotifyListener
public void onRoomCreated(RoomData eventObj)
{
notifications+="onRoomCreated "+eventObj.getName()+" destroyed with id "+eventObj.getId()+"\n";
Debug.Log ("onRoomCreated");
}
示例7: onUserLeftRoom
public void onUserLeftRoom(RoomData eventObj, String username)
{
if (eventObj.getId().Equals(GlobalContext.GameRoomId))
{
if (!GlobalContext.localUsername.Equals(username))
{
Deployment.Current.Dispatcher.BeginInvoke(delegate() { App.g_QuizPageListener.OpponentLeftRoom(); });
}
WarpClient.GetInstance().Disconnect();
}
}