重新上传

这个提交包含在:
2020-07-07 16:59:47 +08:00
父节点 d92cae7033
当前提交 aaac2e26fd
共有 14 个文件被更改,包括 608 次插入 和 0 次删除

4
UD/.gitignore vendored 普通文件
查看文件

@ -0,0 +1,4 @@
#GIT NOT UPDATE
node_modules
log
log2

0
UD/1.js 普通文件
查看文件

11
UD/Build.bat 普通文件
查看文件

@ -0,0 +1,11 @@
@echo off
title Building
start cmd /c "tsc --build 2>log >log2"
ping 127.0.0.1 > nul
ping 127.0.0.1 > nul
ping 127.0.0.1 > nul
ping 127.0.0.1 > nul
type log
type log2
del D:\APPS\JSAICore\UnderDeny.js
copy .\UnderDeny.js D:\APPS\JSAICore\UnderDeny.js

56
UD/Core.d.ts vendored 普通文件
查看文件

@ -0,0 +1,56 @@
import * as net from "net";
import * as Core from "./Core";
/**QQ用户类:一个QQ号对应的人*/export class QQUser{
/**岁数*/age:Number|number;
/**昵称*/nickname:String|string;
/**性别*/sex:"male"|"unkonw"|""|String|string|undefined;
/**QQ号*/user_id:number|Number;
/**地区*/area:String|null|undefined;
/**群名片*/card:String|string|undefined;
/**发言等级*/level:String|string|undefined;
/**群内角色*/role:"owner"|"user";
/**群头衔*/title:string|String;
}
/**消息类:一个消息对应的东西*/export class InfoType{
/**匿名信息*/anonymous:Object|null|undefined;
/**字体*/font:number|Number;
/**群号*/group_id:number|Number|undefined;
/**消息内容*/message:String|string;
/**消息号*/message_id:number|Number;
/**消息类型*/message_type:"group"|"privace";
/**未知*/post_type:String|string;
/**消息*/raw_message:String|string;
/**AiQQ*/self_id:number|Number|2142562417;
/**发送者*/sender:QQUser;
/**类型2*/sub_type:String|string;
/**时间戳*/time:number|Number;
/**发送者QQ*/user_id:number|Number;
}
/**原定于获取名称对应的QQ号,不过已经废弃了
* @param user_id 用户名称*/export function GetUser(user_id:String|string|Number|number):number;
/**HOOK:是否发送过消息*/export var HOOK:Boolean|boolean;
/**添加事件监听器
* @param callback 回调函数
*/export function AddListener(/**回调函数*/callback:((Connect:net.Socket,Info:InfoType)=>void)):void;
/**部分公开功能*/export namespace frame{
/**禁言某人
* @param connect 会话
* @param info 消息
* @param time 时长(单位:s)*/function Ban(connect:net.Socket,info:InfoType,time:number):void;
/**设置HOOK的内容
* @param value TURE|FALSE;*/function SetHOOK(value:Boolean|boolean):void;
/**发送消息
* @param connect 会话
* @param info 消息
* @param msg 发送内容*/function SendMsg(connect:net.Socket,info:InfoType,msg:String|string):void;
/** \@某人
* @param UserId QQ号
*/function At(UserId:number|Number):string;
/** 读取某个配置项目
* @param ConfigName 配置项名称
*/function ReadSystemConfig(ConfigName:String|string):any;
/**写入某个配置项目
* @param ConfigName 配置名称
* @param ConfigValue 配置内容
*/function WriteSystemConfig(ConfigName:String|string,ConfigValue:any):Boolean|boolean;
}

1
UD/Easy.js 普通文件
查看文件

@ -0,0 +1 @@
"use strict";

0
UD/Easy.ts 普通文件
查看文件

1
UD/OnlineAi.d.ts vendored 普通文件
查看文件

@ -0,0 +1 @@
import * as Core from "./Core";

206
UD/UnderDeny.js 普通文件
查看文件

@ -0,0 +1,206 @@
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
//《UnderDeny》 For OnlineAi Version!!!
//Author:Lanshuye
//Version (OnlineAi) <ALL>
//Version (MoudelCE) <ALL>
//Version (This Mod) <1.0>
const Core = __importStar(require("./Core"));
const fs = __importStar(require("fs"));
class GameAction {
Execute(c, i, Temp_this) {
if (Temp_this.Type == "对话") {
Core.frame.SendMsg(c, i, `${Temp_this.Settings.对话_内容}`);
}
if (Temp_this.Type == "跳转") {
var data = fs.readFileSync("./UnderDenyData/Player.json");
var data_obj = JSON.parse(data.toString());
data_obj[i.user_id.toString()].Schedule = Temp_this.Settings.跳转_目标.valueOf();
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(data_obj), (err2) => { });
}
if (Temp_this.Type == "判断") {
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
var data_obj = JSON.parse(data.toString());
if (data_obj[i.user_id.toString()].Vars[Temp_this.Settings.判断_变量.valueOf()] == Temp_this.Settings.判断_依据.valueOf()) {
var temp = new GameAction();
var s = Temp_this.Settings.判断_执行;
for (var j = 0; j < s.length; j++) {
temp.Create(s[j]).Execute(c, i, temp.Create(s[j]));
}
}
});
}
if (Temp_this.Type == "变量") {
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
var data_obj = JSON.parse(data.toString());
data_obj[i.user_id.toString()].Vars[Temp_this.Settings.变量_设置.valueOf()] = Temp_this.Settings.变量_内容.valueOf();
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(data_obj), (err2) => { });
});
}
if (Temp_this.Type == "随机") {
var rom = Math.floor(Math.random() * 100);
if (rom < Temp_this.Settings.触发_几率.valueOf()) {
var temp = new GameAction();
var s = Temp_this.Settings.触发_回调;
for (var j = 0; j < s.length; j++) {
temp.Create(s[j]).Execute(c, i, temp.Create(s[j]));
}
}
else {
if (Temp_this.Settings.触发_否则 != undefined || Temp_this.Settings.触发_否则 != null) {
var temp = new GameAction();
var s = Temp_this.Settings.触发_否则;
for (var j = 0; j < s.length; j++) {
temp.Create(s[j]).Execute(c, i, temp.Create(s[j]));
}
}
}
}
if (Temp_this.Type == "战斗=>扣血") {
var data_obj = JSON.parse(fs.readFileSync("./UnderDenyData/Player.json").toString());
var Player = new PlayerData(data_obj[i.user_id.toString()].Info);
console.log(Temp_this.Settings);
Player.HP = Player.HP.valueOf() - Temp_this.Settings.战斗_扣血.valueOf();
Core.frame.SendMsg(c, i, `${Temp_this.Settings.战斗_目标}对你使用了${Temp_this.Settings.战斗_弹幕},造成${Temp_this.Settings.战斗_扣血}点伤害,你剩余${Player.HP}点血量。`);
data_obj[i.user_id.toString()].Info = Player;
if (Player.HP < 0) {
data_obj[i.user_id.toString()] = undefined;
Core.frame.SendMsg(c, i, `你失败了\r\n${Core.frame.At(i.user_id)}保持你的决心。`);
}
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(data_obj), (err2) => { });
}
}
;
Create(that) {
if (that != undefined) {
this.Type = that.Type;
this.Settings = that.Settings;
}
return this;
}
constructor() {
this.Type = "";
this.Settings = {};
}
}
class Item {
}
class PlayerData {
constructor(PlayerData) {
this.LOVE = PlayerData.LOVE;
this.EXP = PlayerData.EXP;
this.HP = PlayerData.HP;
this.Item = PlayerData.Item;
}
}
class UDPlayer {
constructor(PlayerS) {
this.Schedule = PlayerS.Schedule;
this.Vars = PlayerS.Vars;
this.Info = new PlayerData(PlayerS.Info);
}
}
console.log(`[${new Date().toString()}][UnderDeny OA定制版]正在载入数据...`);
Core.AddListener((connect, info) => {
if (info.message.substr(0, 2) != "UD") {
return;
}
var msg = new String(info.message.replace("UD", ""));
if (msg == "开始游戏") {
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
var PlayerData = JSON.parse(data.toString());
if (PlayerData[info.user_id.toString()] != undefined) {
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},你还在进行游戏,发送\"UD重置\"才可以重新开始`);
return;
}
PlayerData[info.user_id.toString()] = { Schedule: "Start", Vars: {}, Info: { LOVE: 0, EXP: 0, HP: 21, Item: [] } };
fs.readFile("./UnderDenyData/Script.json", (err2, data2) => {
var data_obj = JSON.parse(data2.toString());
PlayerData[info.user_id.toString()].Vars = data_obj["Settings"]["init"];
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(PlayerData), (err2) => {
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},UD初始化完成。发送\"UD查看剧情\"来开始游戏吧`);
});
});
});
}
if (msg == "重置") {
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
var PlayerData = JSON.parse(data.toString());
PlayerData[info.user_id.toString()] = undefined;
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(PlayerData), (err2) => {
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},重置成功!`);
});
});
}
if (msg == "查看剧情") {
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
var PlayerData = JSON.parse(data.toString());
if (PlayerData[info.user_id.toString()] == undefined) {
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
return;
}
var ThisPlayer = new UDPlayer(PlayerData[info.user_id.toString()]);
fs.readFile("./UnderDenyData/Script.json", (err2, data2) => {
var Data = JSON.parse(data2.toString());
var GameInfo = Data["Game"][ThisPlayer.Schedule.valueOf()].Info;
var GameAct = Data["Game"][ThisPlayer.Schedule.valueOf()].Actions;
var YouCanDo = "<你可以选择的行动>\\r\\n";
Object.keys(GameAct).forEach(element => {
YouCanDo = `${YouCanDo}UD行动${element}\\r\\n`;
});
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)}\\r\\n${GameInfo}\\r\\n${YouCanDo}<UNDERDENY>`);
});
});
}
if (msg == "进行存档") {
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
var PlayerData = JSON.parse(data.toString());
if (PlayerData[info.user_id.toString()] == undefined) {
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
return;
}
fs.readFile("./UnderDenyData/Script.json", (err2, data2) => {
var data2_obj = JSON.parse(data2.toString());
if (data2_obj["Game"][PlayerData[info.user_id.toString()].Schedule].SaveAble != true) {
Core.frame.SendMsg(connect, info, "此时你无法存档。");
}
else {
PlayerData[`${info.user_id}_SAVE`] = PlayerData[info.user_id.toString()];
fs.writeFile("./UnderDenyData/Player.json", JSON.stringify(PlayerData), (err3) => { });
Core.frame.SendMsg(connect, info, data2_obj["Game"][PlayerData[info.user_id.toString()].Schedule].SaveInfo);
}
});
});
}
if (msg.substr(0, 2) == "行动") {
var action = msg.replace("行动", "");
fs.readFile("./UnderDenyData/Player.json", (err, data) => {
var PlayerData = JSON.parse(data.toString());
if (PlayerData[info.user_id.toString()] == undefined) {
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
return;
}
var ThisPlayer = new UDPlayer(PlayerData[info.user_id.toString()]);
fs.readFile("./UnderDenyData/Script.json", (err2, data2) => {
var Data = JSON.parse(data2.toString());
var GameAct = Data["Game"][ThisPlayer.Schedule.valueOf()].Actions;
if (GameAct[action] == undefined) {
Core.frame.SendMsg(connect, info, `${Core.frame.At(info.user_id)},没有这个行动,请检查后再发送。`);
return;
}
var ActionGroup = GameAct[action];
var Act = new GameAction();
for (var i = 0; i < ActionGroup.length; i++) {
Act.Create(ActionGroup[i]).Execute(connect, info, Act.Create(ActionGroup[i]));
}
});
});
}
});

223
UD/UnderDeny.ts 普通文件
查看文件

@ -0,0 +1,223 @@
//《UnderDeny》 For OnlineAi Version!!!
//Author:Lanshuye
//Version (OnlineAi) <ALL>
//Version (MoudelCE) <ALL>
//Version (This Mod) <1.0>
import * as Core from "./Core";
import * as fs from "fs";
import { Socket } from "net";
class GameAction{
Type:String;
Settings:{
对话_内容?:String;
对话_人物?:String;
跳转_目标?:String;
变量_设置?:String;
变量_内容?:String;
常量_设置?:String;
判断_变量?:String;
判断_依据?:String;
判断_执行?:GameAction[];
触发_几率?:Number;
触发_回调?:GameAction[];
触发_否则?:GameAction[];
战斗_目标?:String;
战斗_弹幕?:String;
战斗_扣血?:Number;
};
Execute(c:Socket,i:Core.InfoType,Temp_this:GameAction){
if(Temp_this.Type=="对话"){
Core.frame.SendMsg(c,i,`${Temp_this.Settings.对话_内容}`);
}
if(Temp_this.Type=="跳转"){
var data = fs.readFileSync("./UnderDenyData/Player.json");
var data_obj = JSON.parse(data.toString());
data_obj[i.user_id.toString()].Schedule = (Temp_this.Settings.跳转_目标 as String).valueOf();
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(data_obj),(err2)=>{});
}
if(Temp_this.Type=="判断"){
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
var data_obj = JSON.parse(data.toString());
if(data_obj[i.user_id.toString()].Vars[(Temp_this.Settings.判断_变量 as String).valueOf()] == (Temp_this.Settings.判断_依据 as String).valueOf()){
var temp = new GameAction();
var s = (Temp_this.Settings.判断_执行 as GameAction[]);
for(var j=0;j<s.length;j++){
temp.Create(s[j]).Execute(c,i,temp.Create(s[j]));
}
}
});
}
if(Temp_this.Type=="变量"){
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
var data_obj = JSON.parse(data.toString());
data_obj[i.user_id.toString()].Vars[(Temp_this.Settings.变量_设置 as String).valueOf()] = (Temp_this.Settings.变量_内容 as String).valueOf();
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(data_obj),(err2)=>{});
})
}
if(Temp_this.Type=="随机"){
var rom = Math.floor(Math.random() * 100);
if(rom<(Temp_this.Settings.触发_几率 as Number).valueOf()){
var temp = new GameAction();
var s = (Temp_this.Settings.触发_回调 as GameAction[]);
for(var j=0;j<s.length;j++){
temp.Create(s[j]).Execute(c,i,temp.Create(s[j]));
}
}else{
if(Temp_this.Settings.触发_否则!=undefined||Temp_this.Settings.触发_否则!=null){
var temp = new GameAction();
var s = (Temp_this.Settings.触发_否则 as GameAction[]);
for(var j=0;j<s.length;j++){
temp.Create(s[j]).Execute(c,i,temp.Create(s[j]));
}
}
}
}
if(Temp_this.Type=="战斗=>扣血"){
var data_obj = JSON.parse(fs.readFileSync("./UnderDenyData/Player.json").toString());
var Player = new PlayerData(data_obj[i.user_id.toString()].Info as PlayerData);
console.log(Temp_this.Settings);
Player.HP = Player.HP.valueOf() - (Temp_this.Settings.战斗_扣血 as Number).valueOf();
Core.frame.SendMsg(c,i,`${Temp_this.Settings.战斗_目标 as String}对你使用了${Temp_this.Settings.战斗_弹幕 as String},造成${(Temp_this.Settings.战斗_扣血 as Number)}点伤害,你剩余${Player.HP}点血量。`)
data_obj[i.user_id.toString()].Info = Player;
if(Player.HP<0){
data_obj[i.user_id.toString()] = undefined;
Core.frame.SendMsg(c,i,`你失败了\r\n${Core.frame.At(i.user_id)}保持你的决心。`);
}
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(data_obj),(err2)=>{});
}
};
Create(that:GameAction):GameAction{
if(that!=undefined){
this.Type = that.Type;
this.Settings = that.Settings;
}
return this;
}
constructor(){
this.Type = "";
this.Settings = {}
}
}
class Item{
}
class PlayerData{
LOVE:Number;
EXP:Number;
HP:Number;
Item:Item[];
constructor(PlayerData:PlayerData){
this.LOVE = PlayerData.LOVE;
this.EXP = PlayerData.EXP;
this.HP = PlayerData.HP;
this.Item = PlayerData.Item;
}
}
class UDPlayer{
Schedule:String;
Vars:Object;
Info:PlayerData;
constructor(PlayerS:UDPlayer){
this.Schedule = PlayerS.Schedule;
this.Vars = PlayerS.Vars;
this.Info = new PlayerData(PlayerS.Info as PlayerData);
}
}
console.log(`[${new Date().toString()}][UnderDeny OA定制版]正在载入数据...`)
Core.AddListener((connect,info)=>{
if(info.message.substr(0,2)!="UD"){
return;
}
var msg:String = new String(info.message.replace("UD",""));
if(msg=="开始游戏"){
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
var PlayerData = JSON.parse(data.toString());
if(PlayerData[info.user_id.toString()]!=undefined){
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},你还在进行游戏,发送\"UD重置\"才可以重新开始`);
return;
}
PlayerData[info.user_id.toString()] = {Schedule:"Start",Vars:{},Info:{LOVE:0,EXP:0,HP:21,Item:[]}}
fs.readFile("./UnderDenyData/Script.json",(err2,data2)=>{
var data_obj = JSON.parse(data2.toString());
PlayerData[info.user_id.toString()].Vars = data_obj["Settings"]["init"];
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(PlayerData),(err2)=>{
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},UD初始化完成。发送\"UD查看剧情\"来开始游戏吧`);
});
});
});
}
if(msg=="重置"){
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
var PlayerData = JSON.parse(data.toString());
PlayerData[info.user_id.toString()] = undefined;
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(PlayerData),(err2)=>{
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},重置成功!`);
});
});
}
if(msg=="查看剧情"){
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
var PlayerData = JSON.parse(data.toString());
if(PlayerData[info.user_id.toString()]==undefined){
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
return;
}
var ThisPlayer =new UDPlayer(PlayerData[info.user_id.toString()] as UDPlayer);
fs.readFile("./UnderDenyData/Script.json",(err2,data2)=>{
var Data = JSON.parse(data2.toString());
var GameInfo = Data["Game"][ThisPlayer.Schedule.valueOf()].Info as String;
var GameAct = Data["Game"][ThisPlayer.Schedule.valueOf()].Actions as Object;
var YouCanDo = "<你可以选择的行动>\\r\\n";
Object.keys(GameAct).forEach(element=>{
YouCanDo = `${YouCanDo}UD行动${element}\\r\\n`;
});
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)}\\r\\n${GameInfo}\\r\\n${YouCanDo}<UNDERDENY>`);
});
});
}
if(msg == "进行存档"){
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
var PlayerData = JSON.parse(data.toString());
if(PlayerData[info.user_id.toString()]==undefined){
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
return;
}
fs.readFile("./UnderDenyData/Script.json",(err2,data2)=>{
var data2_obj = JSON.parse(data2.toString());
if(data2_obj["Game"][PlayerData[info.user_id.toString()].Schedule].SaveAble!=true){
Core.frame.SendMsg(connect,info,"此时你无法存档。");
}else{
PlayerData[`${info.user_id}_SAVE`] = PlayerData[info.user_id.toString()];
fs.writeFile("./UnderDenyData/Player.json",JSON.stringify(PlayerData),(err3)=>{});
Core.frame.SendMsg(connect,info,data2_obj["Game"][PlayerData[info.user_id.toString()].Schedule].SaveInfo);
}
});
});
}
if(msg.substr(0,2)=="行动"){
var action = msg.replace("行动","");
fs.readFile("./UnderDenyData/Player.json",(err,data)=>{
var PlayerData = JSON.parse(data.toString());
if(PlayerData[info.user_id.toString()]==undefined){
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},你没有进行游戏,发送\"UD开始游戏\"来开始游戏。`);
return;
}
var ThisPlayer =new UDPlayer(PlayerData[info.user_id.toString()] as UDPlayer);
fs.readFile("./UnderDenyData/Script.json",(err2,data2)=>{
var Data = JSON.parse(data2.toString());
var GameAct = Data["Game"][ThisPlayer.Schedule.valueOf()].Actions;
if((GameAct[action] as any)==undefined){
Core.frame.SendMsg(connect,info,`${Core.frame.At(info.user_id)},没有这个行动,请检查后再发送。`);
return;
}
var ActionGroup = GameAct[action] as Array<GameAction>;
var Act:GameAction|undefined = new GameAction();
for(var i=0;i<ActionGroup.length;i++){
Act.Create(ActionGroup[i]).Execute(connect,info,Act.Create(ActionGroup[i]));
}
});
});
}
});

63
UD/tsconfig.json 普通文件
查看文件

@ -0,0 +1,63 @@
{
"compilerOptions": {
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
// "lib": [], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
// "outDir": "./", /* Redirect output structure to the directory. */
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
// "strictNullChecks": true, /* Enable strict null checks. */
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
/* Additional Checks */
// "noUnusedLocals": true, /* Report errors on unused locals. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
/* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
// "typeRoots": [], /* List of folders to include type definitions from. */
// "types": [], /* Type declaration files to be included in compilation. */
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
/* Source Map Options */
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
/* Experimental Options */
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
}
}

查看文件

@ -0,0 +1,4 @@
UD文字版内核不同于JSTextGameCore。
UDTC和JTGC都使用CIS编写的TWS作为参数库(Type With Settings:类型和设置),所以在语法上内容相似,但实现机制完全不一致。
UDTC针对OnlineAi Core做了特别的优化适配,而JTGC只是一般插件。
UDTC针对JTGC的Items库和Attack库做了特别修改,