import IDataModel from "../../framework/data/model/IDataModel"; export default class SystemModel extends IDataModel { static singleInstance: SystemModel = null; static getInstance(): SystemModel { if (SystemModel.singleInstance == null) { SystemModel.singleInstance = new SystemModel(); } return SystemModel.singleInstance; } is_open_music: boolean = false; is_open_sound: boolean = false; constructor() { super('system'); this.Set('music_state', 1); this.Set('sound_state', 1); this.Save(); } getMessageListeners() { return { } } }