示例#1
0
        private void onGroupCreated(object sender, GroupCreatedEventArgs e)
        {
            PlayerContext playerContext = (PlayerContext)e.Message.GroupContext;
            int           ownerId       = playerContext.AllOtherPlayersGroupId;

            playerContext.AllOtherPlayersGroupId = e.Message.GroupID;
        }
示例#2
0
 private void OnGroupCreated(object sender, GroupCreatedEventArgs e)
 {
     _requestHander.AddGroup(e.Groupname, e.UserList);
     _wsServer.Send(String.Empty, String.Empty, new GroupBroadcast(new Dictionary <string, List <string> >()
     {
         { e.Groupname, e.UserList }
     }).GetContainer());
 }