Beispiel #1
0
 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));
     }
 }
Beispiel #2
0
 public void InitByDB(DBGroupShopOne dbData)
 {
     mImpl.InitByDB(this, dbData);
 }