Help Ready Battle
what is wrong with this?
Please help me:( @PROGRAMMATOR @Awiion [IMG]https://s21.postimg.org/p4hv3ut47/image.pngupload gifs[/IMG] |
Re: Help Ready Battle
bad code identation at final of code, also post complete code on pastebin, developers still don't has developed technology of crystal ball.
|
Re: Help Ready Battle
At first we should find out where are the odd brackets from }}.
Then need to add property _playerList because probably: Цитата:
private IList<Account> accounts = new List<Account>(); /// <summary> /// Account join to room /// </summary> /// <param name="account"></param> public void Join(Account account) { // ... accounts.Add(account); // ... } /// <summary> /// Get accounts by SlotState /// </summary> /// <param name="state"></param> /// <returns></returns> public IEnumerable<Account> GetAccounts(SlotState state) { return Accounts.Where(x => x.Slot.HasState(state)); } /// <summary> /// Ready battle request /// </summary> /// <param name="account"></param> public void ReadyBattleRequest(Account account) { // ... if (slot.HasState(SlotState.Normal)) { account.SetState(SlotState.Ready); } else { account.SetState(SlotState.Normal); } // ... } And use: var accounts = GetAccounts(SlotState.Ready); |
Re: Help Ready Battle
XRoro,
Part[2]:Развернуть ↓ |
Re: Help Ready Battle
thanks for all your help :D
|
Текущее время: 19:29. Часовой пояс GMT +3. |
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot