/
domahes
/
Arcade
Обзор
Документация
Войти
/
domahes
/
Arcade
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
js/data/DBlock.js
43 строки
813 B
domahes
Initial commit with game files
01 июн 2026, 09:31
01 июн 2026, 09:31
0f50ffb
Код
Авторство
О чём код?
/** * Created by Yitian Chen on 2019/1/4. * Data structure of drawing block on map */ function DBlock(rd){ //block type this.type = 0; //block ID this.id = 0; //drawing index this.drawIndex = 0; //block width this.width = 1; //block height this.height = 1; //Inner block this.inBlock = null; //trigger this.trigger = null; //read data this.type = rd.readShort(); this.id = rd.readShort(); this.width = rd.readShort(); this.height = rd.readShort(); this.drawIndex = rd.readShort(); var isa = rd.readBool(); if(isa){ this.inBlock = new DBlock(rd); } isa = rd.readBool(); if(isa){ this.trigger = new DTrigger(rd); this.trigger.father = this; } this.isAuto = rd.readBool(); }