コード例 #1
0
ファイル: ActionFactory.cs プロジェクト: panoti/DADHMT_LTW
 private void SendRemoveUserAction(RemoveUserAction action, NetworkStream stream)
 {
     // Id
     WriteInt(action.User.Id, stream);
 }
コード例 #2
0
ファイル: ActionFactory.cs プロジェクト: panoti/DADHMT_LTW
        private RemoveUserAction GetRemoveUserAction(/*int senderId, */NetworkStream stream)
        {
            // Id
            int id = ReadInt(stream);

            var action = new RemoveUserAction(_manager.ClientList, _manager.SendList) {User = _manager.ClientList[id]};

            return action;
        }