public static void Diff(
            EntityMap left,
            EntityMap right,
            IEntityMapDiffHandler handler,
            string staticsticId,
            IGameEntityCompareAgent gameEntityComparator, bool skipMissHandle = false)
        {
            if (gameEntityComparator == null)
            {
                gameEntityComparator = new GameEntityDefaultCompareAgent(handler);
            }

            EntityMapComparaeStatisticOne oneStat = Diff(left, right, handler, gameEntityComparator, skipMissHandle);

            RecordStatistics(staticsticId, oneStat);
        }
Example #2
0
        public static void Diff(
            EntityMap left,
            EntityMap right,
            IEntityMapCompareHandler handler,
            string staticsticId = "",
            IGameEntityComparator gameEntityComparator = null, bool skipMissHandle = false)
        {
            if (gameEntityComparator == null)
            {
                gameEntityComparator = new GameEntityComparator(handler);
            }

            EntityMapComparaeStatisticOne oneStat = UnsortedEntityMapComparator.Diff(left, right, handler, gameEntityComparator, skipMissHandle);

            RecordStatistics(staticsticId, oneStat);
        }
Example #3
0
 public GameContexts()
 {
     _entityMap = EntityMap.Allocate();
     _cache     = EntityMapCache.Allocate(_entityMap);
 }
Example #4
0
 public GameContexts()
 {
     MyEntityMap = EntityMap.Allocate();
     cacheGroup  = EntityMapCacheGroup.Allocate(MyEntityMap);
 }
Example #5
0
        //     private EntityMap latestestEntityMapCache;
#pragma warning disable RefCounter001
        public void Initialize(EntityMap entityId2Entity)
#pragma warning restore RefCounter001
        {
            OriginEntityMap = entityId2Entity;
        }
#pragma warning disable RefCounter001,RefCounter002 // possible reference counter error
        public GameEntityPlayBackInterpolateCompareAgent Init(IEntityMapDiffHandler handler,
                                                              IInterpolationInfo interpolationInfo, EntityMap localEntityMap)
        {
            base.Init(handler);
            interpolationInfo = interpolationInfo;
            localEntityMap    = localEntityMap;

            return(this);
        }
Example #7
0
#pragma warning disable RefCounter001,RefCounter002 // possible reference counter error
        public GameEntityPlayBackDiffComparator Init(IEntityMapCompareHandler handler, IInterpolationInfo interpolationInfo, EntityMap localEntityMap)
        {
            base.Init(handler);
            _interpolationInfo = interpolationInfo;
            _localEntityMap    = localEntityMap;
            return(this);
        }