public void InitByDB(GroupShopOne _this, DBGroupShopOne dbData) { _this.mDbData = dbData; _this.tbGroupShop = Table.GetGroupShop(dbData.GroupShopId); foreach (var character in dbData.Characters) { _this.CharactersCount.modifyValue(character, 1); } if (_this.State == (int)eGroupShopItemState.WaitResult) { _this.overTrigger = TeamServerControl.tm.CreateTrigger(_this.OverTime, () => GiveItem(_this)); } else if (_this.State == (int)eGroupShopItemState.OnSell) { _this.overTrigger = TeamServerControl.tm.CreateTrigger(_this.OverTime, () => TimeOver(_this)); } }
public void InitByDB(DBGroupShopOne dbData) { mImpl.InitByDB(this, dbData); }