Esempio n. 1
0
        public Room(IBot bot)
            : base(bot)
        {
            this.bot = bot;
            this.blockMap = new BlockMap(bot);
            this.blockDrawerPool = new BlockDrawerPool(bot, this);
            this.blockDrawer = blockDrawerPool.CreateBlockDrawer(15);
            this.blockDrawer.Start();

            playerTickThread = new SafeThread(UpdatePhysics);

            EnableTick(50);
        }
Esempio n. 2
0
 public BlockDrawer(IBlockDrawerPool blockDrawerPool, IBot bot, byte priority = 0)
 {
     this.blockDrawerPool = blockDrawerPool;
     this.bot = bot;
     this.priority = priority;
 }