/
domahes
/
Arcade
Обзор
Документация
Войти
/
domahes
/
Arcade
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
js/data/DResAnimParticle.js
44 строки
1018 B
domahes
Initial commit with game files
01 июн 2026, 09:31
01 июн 2026, 09:31
0f50ffb
Код
Авторство
О чём код?
/** * Created by Yitian Chen on 2019/3/14. * Data structure of particle */ function DResAnimParticle(rd){ //Files of particle this.files = []; //ID this.id = rd.readShort(); //name this.name = rd.readString(); //note this.msg = rd.readString(); //Location this.point = new DResAnimPoint(rd); //Type this.launchType = rd.readShort(); //Radius this.radius = rd.readShort(); //Affected by gravity or not this.isGravity = rd.readBool(); //Width this.width = rd.readShort(); //Height this.height = rd.readShort(); //Distance this.distance = rd.readShort(); //direction this.dir = rd.readShort(); //duration this.time = rd.readShort(); //number of particle this.number = rd.readShort(); //Storage structure file this.file = rd.readString(); var length = rd.readInt(); for(var i = 0;i<length;i++){ this.files.push(rd.readString()); } //SE this.sound = new DSetSound(rd); }