use strict mode

This commit is contained in:
ckcz123 2018-11-25 15:27:18 +08:00
parent 417495cc33
commit 62e9426ef7
12 changed files with 24 additions and 0 deletions

View File

@ -3,6 +3,8 @@ actions.js用户交互的事件的处理
键盘鼠标触摸屏事件相关 键盘鼠标触摸屏事件相关
*/ */
"use strict";
function actions() { function actions() {
this.init(); this.init();
} }

View File

@ -4,6 +4,8 @@ control.js游戏主要逻辑控制
寻路算法和人物行走也在此文件内 寻路算法和人物行走也在此文件内
*/ */
"use strict";
function control() { function control() {
this.init(); this.init();
} }

View File

@ -2,6 +2,8 @@
* 初始化 start * 初始化 start
*/ */
"use strict";
function core() { function core() {
this.material = { this.material = {
'animates': {}, 'animates': {},

View File

@ -1,3 +1,5 @@
"use strict";
function data() { function data() {
this.init(); this.init();
} }

View File

@ -1,3 +1,5 @@
"use strict";
function enemys() { function enemys() {
this.init(); this.init();
} }

View File

@ -1,3 +1,5 @@
"use strict";
function events() { function events() {
this.init(); this.init();
} }

View File

@ -1,3 +1,5 @@
"use strict";
function icons() { function icons() {
this.init(); this.init();
} }

View File

@ -1,3 +1,5 @@
"use strict";
function items() { function items() {
this.init(); this.init();
} }

View File

@ -2,6 +2,7 @@
loader.js负责对资源的加载 loader.js负责对资源的加载
*/ */
"use strict";
function loader() { function loader() {
this.init(); this.init();

View File

@ -1,3 +1,5 @@
"use strict";
function maps() { function maps() {
this.init(); this.init();
} }

View File

@ -3,6 +3,9 @@
* 包括 * 包括
* 自动寻路怪物手册楼传器存读档菜单栏NPC对话事件等等 * 自动寻路怪物手册楼传器存读档菜单栏NPC对话事件等等
*/ */
"use strict";
function ui() { function ui() {
this.init(); this.init();
} }

View File

@ -3,6 +3,8 @@ utils.js 工具类
*/ */
"use strict";
function utils() { function utils() {
this.init(); this.init();
} }