11-14-2016, 06:33 PM
Help Ready Battle
|
11-14-2016, 07:24 PM
bad code identation at final of code, also post complete code on pastebin, developers still don't has developed technology of crystal ball.
11-14-2016, 10:00 PM
At first we should find out where are the odd brackets from }}.
Then need to add property _playerList because probably: Цитата:The name '_playerList' does not exist in the current context And the code must be written in C# style as you work with it. [SRC="csharp"]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); } // ... } [/SRC] And use: [SRC="csharp"]var accounts = GetAccounts(SlotState.Ready); [/SRC]
11-15-2016, 12:05 AM
XRoro,
Разработка Emu: PiercingBlow 90%, APB Reloaded 100%.
Самый действенный инструмент для самообучения - грабли.
11-15-2016, 10:12 AM
thanks for all your help
|
« Предыдущая | Следующая »
|
Возможно похожие темы ... | |||||
Тема | Автор | Ответы | Просмотры | Последний пост | |
V42 Battle Bug | 0 | 1,599 |
10-10-2018, 09:08 AM Последний пост: ChunkyHunt |
||
UDP3 Start battle | 3 | 2,256 |
05-21-2018, 08:49 PM Последний пост: ManuelDev |
||
how to fix ? Client IP LAN Join Room Client Start Battle Can not Respawn | 1 | 1,700 |
01-17-2018, 12:47 AM Последний пост: PROGRAMMATOR |
||
Battle Weapon Issue | 10 | 2,819 |
11-13-2016, 02:27 AM Последний пост: bola |
||
Start Battle | 1 | 2,052 |
03-02-2016, 12:59 AM Последний пост: PROGRAMMATOR |
||
BATTLE Camera Game mode | 9 | 2,321 |
02-08-2016, 06:43 PM Последний пост: Exile03 |
Пользователи, просматривающие эту тему: 4 Гость(ей)