feat: integrate platform room entry, UI migration and erqiwang documentation

This commit is contained in:
2026-09-07 21:01:08 +08:00
parent 9c4510697c
commit 30a1b4114c
259 changed files with 84995 additions and 30201 deletions
+26
View File
@@ -0,0 +1,26 @@
// Node 单测环境:提供正式代码按全局名引用的平台工具(不进正式代码,dev-guide 01 §1)
global.min_ary_include = function(aryparent, arychild){
for (var i = 0; i < arychild.length; i++){
var found = false;
for (var j = 0; j < aryparent.length; j++){ if (aryparent[j] == arychild[i]){ found = true; break; } }
if (!found){ return false; }
}
return true;
};
global.min_ary_deduct = function(aryparent, arychild){
var re = [];
for (var i = 0; i < aryparent.length; i++){
var found = false;
for (var j = 0; j < arychild.length; j++){ if (aryparent[i] == arychild[j]){ found = true; break; } }
if (!found){ re.push(aryparent[i]); }
}
return re;
};
global.min_random = function(min, max){ return min + Math.round(Math.random() * (max - min)); };
global.min_now = function(ts){ return ts ? ts : Date.now(); };
global.min_ontimeout = function(func, time){ /* 单测不真正异步执行 */ };
global.youle_erqiwang = global.youle_erqiwang || {
import: { check_player: function(){ return null; }, deduct_roomcard: function(){}, save_grade: function(){} },
app: { SendPack: function(){} }
};
module.exports = {};