Skip to content

Commit

Permalink
2024/8/11 update
Browse files Browse the repository at this point in the history
基本完成服务端API内容
新增速查表
  • Loading branch information
qndm committed Aug 11, 2024
1 parent 2040789 commit 6aea45d
Show file tree
Hide file tree
Showing 79 changed files with 1,159 additions and 571 deletions.
14 changes: 14 additions & 0 deletions docs/_assets/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,18 @@ a>.kind-icon:active {
summary {
-webkit-user-select: none;
user-select: none;
}

.hidden{
color: #202020;
background-color: #202020;
overflow: hidden;
width: 10px;
transition: color 0.2s, width 0.2s;
border-radius: 4px;
}
.hidden:hover{
color: #ffffff;
width: -moz-fit-content;
width: fit-content;
}
133 changes: 79 additions & 54 deletions docs/_assets/iconsParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ const JOKE_MODE = new URL(location).searchParams.get('jokemode') === 'true';
/**@type {HTMLElement | null} */
var $JokeModeonly_element = null;
const defsMap = {
any: ['type generic', 'api/type/any', 'type'],
object: ['type generic', 'type'],
any: ['type', 'js/type/any', 'type'],
object: ['type', , 'type'],
resources: ["object private", 'api/resources', 'const'],
Box3ResourceSystem: ["class private", 'api/resources', 'class'],
GameResourceSystem: ["class private", 'api/resources', 'class'],
Box3TickEvent: ["event", "api/event/TickEvent", 'class'],
GameTickEvent: ["event", "api/event/TickEvent", 'class'],
world: ["object", "api/world", 'const'],
world: ["object protected", "api/world", 'constObject'],
Box3World: ["class", "api/world", 'class'],
GameWorld: ["class", "/api/world", 'class'],
Box3Entity: ["class", "api/class/Entity", 'class'],
Expand All @@ -18,7 +20,7 @@ const defsMap = {
GamePlayer: ["class", "api/class/Player", 'class'],
Box3Zone: ["class", "api/class/Zone", 'class'],
GameZone: ["class", "api/class/Zone", 'class'],
URL: ["class", "api/type/base/URL", 'class'],
URL: ["class", "js/type/URL", 'class'],
Box3ClickEvent: ["event", "api/event/ClickEvent", 'class'],
GameClickEvent: ["event", "api/event/ClickEvent", 'class'],
Box3EventChannel: ["type generic", "api/type/EventChannel", 'type'],
Expand All @@ -27,66 +29,70 @@ const defsMap = {
GameEventFuture: ["type generic", "api/type/EventFuture", 'type'],
Box3RespawnEvent: ["event", "api/event/RespawnEvent", 'class'],
GameRespawnEvent: ["event", "api/event/RespawnEvent", 'class'],
Partial: ["type parent-interface generic", "api/type/base/Partial", 'type'],
Partial: ["type generic", "api/type/Partial", 'type'],
Box3EntityConfig: ["interface", "api/type/EntityConfig", "interface"],
GameEntityConfig: ["interface", "api/type/EntityConfig", "interface"],
Box3Vector3: ["class", "api/type/Vector3", 'class'],
GameVector3: ["class", "api/type/Vector3", 'class'],
Box3SelectorString: ["type", "api/type/SelectorString", 'type'],
GameSelectorString: ["type", "api/type/SelectorString", 'type'],
Number: ["interface", "api/type/base/Number", 'interface'],
number: ["type generic", "api/type/base/Number", 'type'],
Boolean: ["interface", "api/type/base/Boolean", 'interface'],
boolean: ["type generic", "api/type/base/Boolean", 'type'],
Number: ["interface", "js/type/Number", 'interface'],
number: ["type", "js/type/Number", 'type'],
Boolean: ["interface", "js/type/Boolean", 'interface'],
boolean: ["type", "js/type/Boolean", 'type'],
Box3RaycastOptions: ["interface", "api/type/RaycastOptions", 'interface'],
GameRaycastOptions: ["interface", "api/type/RaycastOptions", 'interface'],
Box3RaycastResult: ["class", "api/type/RaycastResult", 'class'],
GameRaycastResult: ["class", "api/type/RaycastResult", 'class'],
String: ["interface", "api/type/base/String", 'interface'],
string: ["type generic", "api/type/base/String", 'type'],
void: ["type generic", "api/type/base/void", 'type'],
never: ["type generic", "api/type/base/never", 'type'],
null: ["static", "https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/null", 'keyword'],
undefined: ["static", "https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/undefined", 'keyword'],
String: ["interface", "js/type/String", 'interface'],
string: ["type", "js/type/String", 'type'],
void: ["type", "js/type/void", 'type'],
never: ["type", "js/type/never", 'type'],
null: ["static", "js/type/null", 'keyword'],
undefined: ["static", "js/type/undefined", 'keyword'],
Box3Bounds3: ["class", "api/type/Bounds3", 'class'],
GameBounds3: ["class", "api/type/Bounds3", 'class'],
Box3Quaternion: ["class", "api/type/Quaternion", 'class'],
GameQuaternion: ["class", "api/type/Quaternion", 'class'],
Box3ButtonType: ["enum", "api/type/enum/ButtonType", 'enum'],
GameButtonType: ["enum", "api/type/enum/ButtonType", 'enum'],
Box3ButtonType: ["enum", "api/enum/ButtonType", 'enum'],
GameButtonType: ["enum", "api/enum/ButtonType", 'enum'],
Box3AnimationPlaybackConfig: ["interface", "api/type/AnimationPlaybackConfig", 'interface'],
GameAnimationPlaybackConfig: ["interface", "api/type/AnimationPlaybackConfig", 'interface'],
Box3Animation: ["class", "api/class/Animation", 'class'],
GameAnimation: ["class", "api/class/Animation", 'class'],
Box3Animation: ["class generic", "api/class/Animation", 'class'],
GameAnimation: ["class generic", "api/class/Animation", 'class'],
Box3WorldKeyframe: ["interface", "api/type/WorldKeyframe", 'interface'],
GameWorldKeyframe: ["interface", "api/type/WorldKeyframe", 'interface'],
Box3EntityKeyframe: ["interface", "api/type/EntityKeyframe", 'interface'],
GameEntityKeyframe: ["interface", "api/type/EntityKeyframe", 'interface'],
Box3PlayerKeyframe: ["interface", "api/type/PlayerKeyframe", 'interface'],
GamePlayerKeyframe: ["interface", "api/type/PlayerKeyframe", 'interface'],
Box3AnimationPlaybackState: ["enum", "api/type/enum/AnimationPlaybackState", 'enum'],
GameAnimationPlaybackState: ["enum", "api/type/enum/AnimationPlaybackState", 'enum'],
Box3AnimationDirection: ["enum", "api/type/enum/AnimationDirection", 'enum'],
GameAnimationDirection: ["enum", "api/type/enum/AnimationDirection", 'enum'],
Box3Easing: ["enum", "api/type/enum/Easing", 'enum'],
GameEasing: ["enum", "api/type/enum/Easing", 'enum'],
Box3AnimationPlaybackState: ["enum", "api/enum/AnimationPlaybackState", 'enum'],
GameAnimationPlaybackState: ["enum", "api/enum/AnimationPlaybackState", 'enum'],
Box3AnimationDirection: ["enum", "api/enum/AnimationDirection", 'enum'],
GameAnimationDirection: ["enum", "api/enum/AnimationDirection", 'enum'],
Box3Easing: ["enum", "api/enum/Easing", 'enum'],
GameEasing: ["enum", "api/enum/Easing", 'enum'],
Box3RGBColor: ["class", "api/type/RGBColor", 'class'],
Box3RGBAColor: ["class", "api/type/RGBAColor", 'class'],
GameRGBColor: ["class", "api/type/RGBColor", 'class'],
GameRGBAColor: ["class", "api/type/RGBAColor", 'class'],
Box3SoundEffect: ["interface", "api/type/SoundEffect", 'interface'],
GameSoundEffect: ["interface", "api/type/SoundEffect", 'interface'],
GameMotionController: ["class", "api/class/MotionController", 'class'],
Box3CameraMode: ["enum", "api/type/enum/CameraMode", 'enum'],
GameCameraMode: ["enum", "api/type/enum/CameraMode", 'enum'],
Box3CameraFreezedAxis: ["enum private", "api/type/enum/CameraFreezedAxis", 'hiddenEnum'],
GameCameraFreezedAxis: ["enum private", "api/type/enum/CameraFreezedAxis", 'hiddenEnum'],
GameMotionController: ["class generic", "api/class/MotionController", 'class'],
GameMotionConfig: ["interface", "api/type/MotionConfig", 'interface'],
GameMotionClipConfig: ["interface", "api/type/MotionClipConfig", 'interface'],
GameMotionHandler: ["class generic", "api/class/MotionHandler", 'class'],
GameMotionEvent: ["event", "api/event/MotionEvent", 'event'],
Box3CameraMode: ["enum", "api/enum/CameraMode", 'enum'],
GameCameraMode: ["enum", "api/enum/CameraMode", 'enum'],
Box3CameraFreezedAxis: ["enum private", "api/enum/CameraFreezedAxis", 'hiddenEnum'],
GameCameraFreezedAxis: ["enum private", "api/enum/CameraFreezedAxis", 'hiddenEnum'],
Box3DamageEvent: ["event", "api/event/DamageEvent", 'class'],
GameDamageEvent: ["event", "api/event/DamageEvent", 'class'],
Box3DieEvent: ["event", "api/event/DieEvent", 'class'],
GameDieEvent: ["event", "api/event/DieEvent", 'class'],
Box3PlayerEntityEvent: ["event parent-class inherited", "api/event/PlayerEntityEvent", 'class'],
GamePlayerEntityEvent: ["event parent-class inherited", "api/event/PlayerEntityEvent", 'class'],
Box3PlayerEntityEvent: ["event", "api/event/PlayerEntityEvent", 'class'],
GamePlayerEntityEvent: ["event", "api/event/PlayerEntityEvent", 'class'],
Box3EntityEvent: ["event", "api/event/EntityEvent", 'class'],
GameEntityEvent: ["event", "api/event/EntityEvent", 'class'],
Box3ChatEvent: ["event", "api/event/ChatEvent", 'class'],
Expand All @@ -111,14 +117,14 @@ const defsMap = {
GameSkinValue: ["type private", "api/type/SkinValue", 'hiddenType'],
Box3SkinInvisible: ["type", "api/type/SkinInvisible", 'type'],
GameSkinInvisible: ["type", "api/type/SkinInvisible", 'type'],
Box3InputDirection: ["enum", "api/type/enum/InputDirection", 'enum'],
GameInputDirection: ["enum", "api/type/enum/InputDirection", 'enum'],
Box3PlayerMoveState: ["enum", "api/type/enum/PlayerMoveState", 'enum'],
GamePlayerMoveState: ["enum", "api/type/enum/PlayerMoveState", 'enum'],
Box3PlayerWalkState: ["enum", "api/type/enum/PlayerWalkState", 'enum'],
GamePlayerWalkState: ["enum", "api/type/enum/PlayerWalkState", 'enum'],
Box3DialogType: ["enum", "api/type/enum/DialogType", 'enum'],
GameDialogType: ["enum", "api/type/enum/DialogType", 'enum'],
Box3InputDirection: ["enum", "api/enum/InputDirection", 'enum'],
GameInputDirection: ["enum", "api/enum/InputDirection", 'enum'],
Box3PlayerMoveState: ["enum", "api/enum/PlayerMoveState", 'enum'],
GamePlayerMoveState: ["enum", "api/enum/PlayerMoveState", 'enum'],
Box3PlayerWalkState: ["enum", "api/enum/PlayerWalkState", 'enum'],
GamePlayerWalkState: ["enum", "api/enum/PlayerWalkState", 'enum'],
Box3DialogType: ["enum", "api/enum/DialogType", 'enum'],
GameDialogType: ["enum", "api/enum/DialogType", 'enum'],
Box3DialogSelectResponse: ["type", "api/type/DialogSelectResponse", 'type'],
GameDialogSelectResponse: ["type", "api/type/DialogSelectResponse", 'type'],
Box3DialogParams: ["type", "api/type/DialogParams", 'type'],
Expand All @@ -133,23 +139,26 @@ const defsMap = {
GameDialogCancelOption: ["type", "api/type/DialogCancelOption", 'type'],
Box3DialogCall: ["type", "api/class/Player/#Box3DialogCall", 'type'],
GameDialogCall: ["type", "api/class/Player/#GameDialogCall", 'type'],
Box3AssetListEntry: ["type", "api/type/DialogCall", 'type'],
GameAssetListEntry: ["type", "api/type/DialogCall", 'type'],
Box3AssetListEntry: ["type private", "api/class/AssetListEntry", 'hiddenType'],
GameAssetListEntry: ["type private", "api/class/AssetListEntry", 'hiddenType'],
Box3AssetType: ["enum private", "api/enum/AssetType", 'hiddenEnum'],
GameAssetType: ["enum private", "api/enum/AssetType", 'hiddenEnum'],
Box3ZoneConfig: ["type", "api/type/ZoneConfig", 'type'],
GameZoneConfig: ["type", "api/type/ZoneConfig", 'type'],
Box3EventHandlerToken: ["class", "api/class/EventHandlerToken", 'class'],
GameEventHandlerToken: ["class", "api/class/EventHandlerToken", 'class'],

Box3DataBase: ["class", "api/db", 'class'],
Box3Database: ["class", "api/db", 'class'],
GameDatabase: ["class", "api/db", 'class'],
Box3QueryResult: ["class", 'api/class/QueryResult', 'class'],
GameQueryResult: ["class", 'api/class/QueryResult', 'class'],
GameStorage: ["class", "api/storage", 'class'],
GameDataStorage: ["class", "api/class/DataStorage", 'class'],
QueryList: ["class", "api/class/QueryList", 'class'],
ListPageOptions: ["type", "api/type/ListPageOptions", 'type'],
ReturnValue: ["type", "api/type/ReturnValue", 'type'],
JSONValue: ["type", "api/type/JSONValue", 'type'],
db: ["object", "api/db", 'const'],
storage: ["object", "api/storage", 'const'],
db: ["object protected", "api/db", 'const'],
storage: ["object protected", "api/storage", 'const'],
gui: ["object private", "api/gui", 'const'],
GameGUI: ["class private", "api/gui", 'class'],
GameGUIEventListener: ["interface private", "api/type/GUIEventListener", 'hiddenInterface'],
Expand All @@ -173,24 +182,37 @@ const defsMap = {
GameHttpRequest: ["class private", "api/class/HttpRequest", 'class'],
Box3HttpResponse: ["class private", "api/class/HttpResponse", 'class'],
GameHttpResponse: ["class private", "api/class/HttpResponse", 'class'],
console: ["object", 'api/console', "const"],
console: ["object protected", 'api/console', "const"],
GameConsole: ["class private", 'api/console', "hiddenClass"],
Box3LoggerMethod: ["type private", 'api/type/LoggerMethod', "hiddenType"],
GameLoggerMethod: ["type private", 'api/type/LoggerMethod', "hiddenType"],
Box3EntityContact: ["class", "api/class/EntityContact", "class"],
GameEntityContact: ["class", "api/class/EntityContact", "class"],
Box3VoxelContact: ["class", "api/class/VoxelContact", "class"],
GameVoxelContact: ["class", "api/class/VoxelContact", "class"],
Box3FluidContact: ["class", "api/class/FluidContact", "class"],
GameFluidContact: ["class", "api/class/FluidContact", "class"],
Box3HurtOptions: ["interface", "api/type/HurtOptions", "interface"],
GameHurtOptions: ["interface", "api/type/HurtOptions", "interface"],
Box3Wearable: ["class", "api/class/Wearable", "class"],
GameWearable: ["class", "api/class/Wearable", "class"],

Box3Voxels: ["class", "api/voxels", "class"],
GameVoxels: ["class", "api/voxels", "class"],
voxels: ["object", "api/voxels", "const"],
voxels: ["object protected", "api/voxels", "const"],

Box3BodyPart: ["enum", "api/type/enum/BodyPart", "enum"],
GameBodyPart: ["enum", "api/type/enum/BodyPart", "enum"],
Box3BodyPart: ["enum", "api/enum/BodyPart", "enum"],
GameBodyPart: ["enum", "api/enum/BodyPart", "enum"],

ServerRemoteChannel: ["class", "api/class/ServerRemoteChannel", "class"],
ServerRemoteChannel: ["class", "api/remoteChannel", "class"],
ClientRemoteChannel: ["class", "api_client/remoteChannel", "class"],
SendClientEventType: ["type", "api/remoteChannel#sendclienteventtype", "type"],
ServerEvent: ["event", "api/event/ServerEvent", "event"],
PlayerNavigator: ["class private", "api/class/PlayerNavigator", "hiddenClass"],
SocialType: ["enum", "api/enum/SocialType", "enum"],
Promise: ["interface", "https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise", "interface"],
Map: ["interface", "https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Map", "interface"],
ArrayBuffer: ["interface", "https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", "interface"],
Promise: ["interface generic", "https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise", "interface"],
Map: ["interface generic", "https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Map", "interface"],
ArrayBuffer: ["interface generic", "https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", "interface"],
NavigatorEventType: ["enum private", , "hiddenEnum"],
Sound: ["class private", "api/class/Sound" , "hiddenClass"],
};
Expand Down Expand Up @@ -219,6 +241,7 @@ const iconTagMap = {
class: ["class", "#00bfa5"],
hiddenClass: ["class", "#00bfa5"],
const: ["variable protected", "#448aff"],
constObject: ["object protected", "#448aff"],
hiddenConst: ["variable protected", "#448aff"],
staticMethod: ["static method parent-class", "#c2c262"],
hiddenStaticMethod: ["static function parent-class private", "#c2c262"],
Expand All @@ -237,6 +260,8 @@ const iconTagMap = {
getter: ["getter parent-class", "#448aff"],
setter: ["setter parent-class", "#00b0ff"],
accessor: ["accessor parent-class", "#00b0ff"],
index: ["index", "#00b0ff"],
indexArg: ["index parent-enum", "#00b0ff"],
};
function createIconElement(text, id, color) {
const list = id.split(" ");
Expand Down
Loading

0 comments on commit 6aea45d

Please sign in to comment.