Esempio n. 1
0
 public static void Main(string[] args)
 {
     AltEntitySync.Init(1, 100,
                        repository =>
     {
         mockNetworkLayer = new MockNetworkLayer(repository);
         return(mockNetworkLayer);
     },
                        () => new Grid2(50_000, 50_000, 10, 10_000, 10_000),
                        new IdProvider());
     Entities();
 }
Esempio n. 2
0
 public static void Main(string[] args)
 {
     AltEntitySync.Init(1, (id) => 100, _ => false,
                        (threadCount, repository) =>
     {
         mockNetworkLayer = new MockNetworkLayer(threadCount, repository);
         return(mockNetworkLayer);
     },
                        (entity, threadCount) => (entity.Id % threadCount),
                        (entityId, entityType, threadCount) => (entityId % threadCount),
                        (id) => new Grid3(50_000, 50_000, 10, 10_000, 10_000),
                        new IdProvider());
     Entities();
 }