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); }
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); }
public GameContexts() { _entityMap = EntityMap.Allocate(); _cache = EntityMapCache.Allocate(_entityMap); }
public GameContexts() { MyEntityMap = EntityMap.Allocate(); cacheGroup = EntityMapCacheGroup.Allocate(MyEntityMap); }
// 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); }
#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); }