Пример #1
0
        public LadderMatchEntity(LadderManagerEntity home, LadderManagerEntity away, Guid idx, Guid ladderid, int groupindex)
        {
            this.Idx             = idx;
            this.LadderId        = ladderid;
            this.HomeId          = home.ManagerId;
            this.AwayId          = away.ManagerId;
            this.HomeName        = home.Name;
            this.AwayName        = away.Name;
            this.HomeLadderScore = home.Score;
            this.AwayLadderScore = away.Score;
            this.HomeScore       = 0;
            this.AwayScore       = 0;
            this.HomeIsBot       = home.IsBot;
            this.AwayIsBot       = away.IsBot;
            this.GroupIndex      = groupindex;
            this.PrizeHomeScore  = 0;
            this.PrizeAwayScore  = 0;
            this.Status          = -1;
            this.RowTime         = DateTime.Now;

            this.HomeHasTask = home.HasTask;
            this.AwayHasTask = away.HasTask;
            this.HomeIsHook  = home.IsHook;
            this.AwayIsHook  = away.IsHook;
        }
Пример #2
0
        public LadderManagerEntity Clone()
        {
            LadderManagerEntity entity = new LadderManagerEntity();

            entity.ManagerId           = this.ManagerId;
            entity.Score               = this.Score;
            entity.NewlyScore          = this.NewlyScore;
            entity.NewlyHonor          = this.NewlyHonor;
            entity.Honor               = this.Honor;
            entity.MaxScore            = this.MaxScore;
            entity.MatchTime           = this.MatchTime;
            entity.LastExchageTime     = this.LastExchageTime;
            entity.ExchangeIds         = this.ExchangeIds;
            entity.ExchangedIds        = this.ExchangedIds;
            entity.RefreshDate         = this.RefreshDate;
            entity.Status              = this.Status;
            entity.RowTime             = this.RowTime;
            entity.UpdateTime          = this.UpdateTime;
            entity.RowVersion          = this.RowVersion;
            entity.RefreshTimes        = this.RefreshTimes;
            entity.EquipmentProperties = this.EquipmentProperties;
            entity.EquipmentItems      = this.EquipmentItems;
            entity.LadderCoin          = this.LadderCoin;
            return(entity);
        }