private bool ProcessChainInit(ChainInit i) { MPAChain nc = new MPAChain(i.ChainID, this); foreach (var bi in i.BoardInfos) { MPATile t = new MPATile(bi.Bid, bi.Pid, bi.Nid, nc); nc.AddTile(t); } _chains[i.ChainID] = nc; ChainAdded?.Invoke(this, new MPAChainEventArgs(nc)); return(true); }
void Chain_Add() => ChainAdded?.Invoke(_chain.ParentIndex.Value + 1);