public void Bet(StackBase stackData) { if (stackData.GetPrice() > this._amountOfMoney) { Console.WriteLine("代币不足 >_<!"); return; } this._amountOfMoney -= stackData.GetPrice(); StackTable.GetInstance().CreateBill(this._id, stackData); }
public StackBill(uint playerid, StackBase stackData) { _playerId = playerid; _stackData = stackData; }
public void CreateBill(uint playerid, StackBase stackData) { var bill = new StackBill(playerid, stackData); _billBuffer.Add(bill); }