From 00b7ee45f802f2f7bfed345ecf687bff6cf04ac5 Mon Sep 17 00:00:00 2001 From: maji Date: Mon, 29 Dec 2025 20:19:46 +0700 Subject: [PATCH] c --- xml/types/Environment.xml | 22 +++++++++++----------- xml/types/Explosion.xml | 20 ++++++++++++++------ xml/types/FileLinkAsset.xml | 4 ++-- xml/types/FilterService.xml | 4 ++-- xml/types/Folder.xml | 2 +- xml/types/FontAsset.xml | 2 +- xml/types/GUI.xml | 2 +- xml/types/GUI3D.xml | 10 +++++----- xml/types/Game.xml | 14 +++++++------- xml/types/Grabbable.xml | 20 ++++++++++++++------ xml/types/GradientSky.xml | 26 +++++++++++++------------- xml/types/Hidden.xml | 2 +- xml/types/HttpRequestData.xml | 12 ++++++------ xml/types/HttpResponseData.xml | 10 +++++----- xml/types/HttpService.xml | 14 +++++++------- xml/types/Image3D.xml | 16 ++++++++-------- xml/types/ImageAsset.xml | 2 +- xml/types/InputAction.xml | 2 +- xml/types/InputActionAxis.xml | 2 +- 19 files changed, 101 insertions(+), 85 deletions(-) diff --git a/xml/types/Environment.xml b/xml/types/Environment.xml index 720c481..a8b463b 100644 --- a/xml/types/Environment.xml +++ b/xml/types/Environment.xml @@ -8,7 +8,7 @@ true true false - Missing Documentation + Determines the current camera which player is using to view Gravity @@ -16,7 +16,7 @@ true false false - Missing Documentation + The direction and strength of gravity in the world. PartDestroyHeight @@ -24,7 +24,7 @@ true false false - Missing Documentation + The height at which unanchored parts are destroyed when they fall below it. AutoGenerateNavMesh @@ -32,7 +32,7 @@ true false false - Missing Documentation + Determines whether or not to automatically build a navigation mesh for NPC pathfinding. This property is disabled by default so there are no performance issues with larger maps. Raycast @@ -64,7 +64,7 @@ false false false - Missing Documentation + Casts a ray from origin with a specified direction and returns a RayResult for the first hit object. RaycastAll @@ -96,7 +96,7 @@ false false false - Missing Documentation + Casts a ray from origin with a specified direction and returns a RayResult array for all hit objects. OverlapSphere @@ -122,7 +122,7 @@ false false false - Missing Documentation + Returns a list of instances intersecting with the sphere in the given position and radius. OverlapBox @@ -154,7 +154,7 @@ false false false - Missing Documentation + Returns a list of instances intersecting with the box in the given position, size and rotation. RebuildNavMesh @@ -162,7 +162,7 @@ false false false - Missing Documentation + Rebuilds the navigation mesh which determines the empty space where NPCs can pathfind in. GetPointOnNavMesh @@ -176,10 +176,10 @@ false false false - Missing Documentation + Returns a point on the navigation mesh at the given position. true false false - Missing Documentation + Environment is the primary object intended for storing active objects in the place. diff --git a/xml/types/Explosion.xml b/xml/types/Explosion.xml index 56efb9f..e463980 100644 --- a/xml/types/Explosion.xml +++ b/xml/types/Explosion.xml @@ -8,7 +8,7 @@ true false false - Missing Documentation + Determines the radius of this explosion Force @@ -16,7 +16,7 @@ true false false - Missing Documentation + Determines the force of this explosion that will be applied to affected hits AffectAnchored @@ -24,7 +24,7 @@ true false false - Missing Documentation + Determines if this explosion should affect anchored parts or not Damage @@ -32,7 +32,7 @@ true false false - Missing Documentation + Damage that is affected to player AffectPredicate @@ -40,7 +40,15 @@ true false false - Missing Documentation + A predicate function deciding whenever this part should be accepted or not + +Example usage: +```lua +explosion.AffectPredicate = function(hit) + -- always explode + return true +end +``` Hitted @@ -53,5 +61,5 @@ false false true - Missing Documentation + Explosion is a deadly explosion killing players and applying force to parts at the given position. diff --git a/xml/types/FileLinkAsset.xml b/xml/types/FileLinkAsset.xml index 7024081..78ff50c 100644 --- a/xml/types/FileLinkAsset.xml +++ b/xml/types/FileLinkAsset.xml @@ -8,10 +8,10 @@ false false false - Missing Documentation + The ID of the file false false true - Missing Documentation + Represents a link to a file path in the file system diff --git a/xml/types/FilterService.xml b/xml/types/FilterService.xml index ec725f3..d3b1f9b 100644 --- a/xml/types/FilterService.xml +++ b/xml/types/FilterService.xml @@ -14,10 +14,10 @@ false false true - Missing Documentation + Filter a string true false false - Missing Documentation + FilterService is a service which processes and filter user inputs diff --git a/xml/types/Folder.xml b/xml/types/Folder.xml index dadd551..941dcfe 100644 --- a/xml/types/Folder.xml +++ b/xml/types/Folder.xml @@ -5,5 +5,5 @@ false false true - Missing Documentation + Folder is similar to a model, used for storing objects in the place. diff --git a/xml/types/FontAsset.xml b/xml/types/FontAsset.xml index 88a1b1c..9170f8d 100644 --- a/xml/types/FontAsset.xml +++ b/xml/types/FontAsset.xml @@ -5,5 +5,5 @@ false true false - Missing Documentation + Base class for font assets diff --git a/xml/types/GUI.xml b/xml/types/GUI.xml index 86b83e1..443f431 100644 --- a/xml/types/GUI.xml +++ b/xml/types/GUI.xml @@ -5,5 +5,5 @@ false false true - Missing Documentation + GUI is a class that is used to create a GUI. diff --git a/xml/types/GUI3D.xml b/xml/types/GUI3D.xml index a6ea59c..38dc187 100644 --- a/xml/types/GUI3D.xml +++ b/xml/types/GUI3D.xml @@ -8,7 +8,7 @@ true false false - Missing Documentation + Determines the canvas size for this GUI Shaded @@ -16,7 +16,7 @@ true false false - Missing Documentation + Determines if this GUI3D should be affected by lighting FaceCamera @@ -24,7 +24,7 @@ true false false - Missing Documentation + Determines if this GUI3D always face the camera? Transparent @@ -32,10 +32,10 @@ true false false - Missing Documentation + Determines if the background should be transparent. Recommended to be set to false if transparent background is not needed. false false true - Missing Documentation + GUI3D is a class that allows GUI to be displayed in a 3D space. diff --git a/xml/types/Game.xml b/xml/types/Game.xml index 087e7b0..a31db2d 100644 --- a/xml/types/Game.xml +++ b/xml/types/Game.xml @@ -16,7 +16,7 @@ true true false - Missing Documentation + The ID of the current Polytoria place. ServerID @@ -24,7 +24,7 @@ true true false - Missing Documentation + The server ID of the current instance. UpTime @@ -32,7 +32,7 @@ true true false - Missing Documentation + The uptime of this game in seconds. InstanceCount @@ -40,12 +40,12 @@ true true false - Missing Documentation + The total number of instances currently loaded. Ready - Missing Documentation + Fires when the game is ready Rendered @@ -53,10 +53,10 @@ delta number - Fires when the game has been rendered + Fires every frame after the place has been rendered. The `delta` parameter is the time between the last frame and the current. true false false - Missing Documentation + Game is the root object in the Polytoria instance tree. It is the object from which everything is descended. diff --git a/xml/types/Grabbable.xml b/xml/types/Grabbable.xml index 9ff41e5..1716572 100644 --- a/xml/types/Grabbable.xml +++ b/xml/types/Grabbable.xml @@ -8,7 +8,7 @@ true false false - Missing Documentation + Determines the force used to drag this object. MaxRange @@ -16,7 +16,7 @@ true false false - Missing Documentation + Determines the max range that this object can be dragged. PermissionMode @@ -24,7 +24,7 @@ true false false - Missing Documentation + Determines the permission mode for this grabber Dragger @@ -32,7 +32,7 @@ true true false - Missing Documentation + Returns the current dragger PermissionPredicate @@ -40,7 +40,15 @@ true false false - Missing Documentation + A predicate function deciding whenever this player can grab this object. `PermissionMode` must be set to `GrabbablePermissionMode.Scripted` + +Example usage: +```lua +grabbable.PermissionMode = Enums.GrabbablePermissionMode.Scripted +grabbable.PermissionPredicate = function(player) + return player.Name == "Player1" +end +``` Grabbed @@ -58,5 +66,5 @@ false false true - Missing Documentation + Grabbable represents a object that can be dragged by user. It can be parented to Physical to give user ability to drag that object. diff --git a/xml/types/GradientSky.xml b/xml/types/GradientSky.xml index ffbc587..7a775f2 100644 --- a/xml/types/GradientSky.xml +++ b/xml/types/GradientSky.xml @@ -8,7 +8,7 @@ true false false - Missing Documentation + Determines the color emitting off the sun. SunDiscMultiplier @@ -16,7 +16,7 @@ true false false - Missing Documentation + Determines the multiplier of the sun. SunDiscExponent @@ -24,7 +24,7 @@ true false false - Missing Documentation + Determines the exponent of the sun. SunHaloColor @@ -32,7 +32,7 @@ true false false - Missing Documentation + Determines the color of the sun halo. SunHaloExponent @@ -40,7 +40,7 @@ true false false - Missing Documentation + Determines the exponent of the sun halo. SunHaloContribution @@ -48,7 +48,7 @@ true false false - Missing Documentation + Determines the contribution of the sun halo. HorizonLineColor @@ -56,7 +56,7 @@ true false false - Missing Documentation + Determines the horizon line's color. HorizonLineExponent @@ -64,7 +64,7 @@ true false false - Missing Documentation + Determines the horizon line's exponent. HorizonLineContribution @@ -72,7 +72,7 @@ true false false - Missing Documentation + Determines how much the horizon line contributes. SkyGradientTop @@ -80,7 +80,7 @@ true false false - Missing Documentation + Determines the top color of the gradient. SkyGradientBottom @@ -88,7 +88,7 @@ true false false - Missing Documentation + Determines the bottom color of the gradient. SkyGradientExponent @@ -96,10 +96,10 @@ true false false - Missing Documentation + Determines the gradient's exponent. false false true - Missing Documentation + GradientSky is a class that is used to set a gradient skybox in the world. diff --git a/xml/types/Hidden.xml b/xml/types/Hidden.xml index 9089fa0..9c54598 100644 --- a/xml/types/Hidden.xml +++ b/xml/types/Hidden.xml @@ -5,5 +5,5 @@ false false false - Missing Documentation + Hidden is a object used for hiding instances. diff --git a/xml/types/HttpRequestData.xml b/xml/types/HttpRequestData.xml index 4585495..a35b6b8 100644 --- a/xml/types/HttpRequestData.xml +++ b/xml/types/HttpRequestData.xml @@ -8,7 +8,7 @@ true false false - Missing Documentation + The target endpoint of the HTTP request. Method @@ -16,7 +16,7 @@ true false false - Missing Documentation + The HTTP method used for the request. Body @@ -24,7 +24,7 @@ true false false - Missing Documentation + The payload sent with the request. Headers @@ -32,7 +32,7 @@ true false false - Missing Documentation + A table of HTTP headers to include with the request, represented as key-value pairs. New @@ -40,10 +40,10 @@ false false true - Missing Documentation + Creates and returns a new instance of `HttpRequestData` false false false - Missing Documentation + HttpRequestData represents the data required to construct an HTTP request diff --git a/xml/types/HttpResponseData.xml b/xml/types/HttpResponseData.xml index f0c3769..dd76fbb 100644 --- a/xml/types/HttpResponseData.xml +++ b/xml/types/HttpResponseData.xml @@ -8,7 +8,7 @@ true true false - Missing Documentation + Indicates whether the HTTP request completed successfully. StatusCode @@ -16,7 +16,7 @@ true true false - Missing Documentation + The HTTP status code returned by the server. Headers @@ -24,7 +24,7 @@ true true false - Missing Documentation + A table containing the HTTP response headers returned by the server, represented as key-value pairs. Body @@ -32,10 +32,10 @@ true true false - Missing Documentation + The response payload returned by the server as a string buffer. false false false - Missing Documentation + HttpResponseData represents the result of an HTTP request. diff --git a/xml/types/HttpService.xml b/xml/types/HttpService.xml index 6978844..d2744f5 100644 --- a/xml/types/HttpService.xml +++ b/xml/types/HttpService.xml @@ -14,7 +14,7 @@ true false false - Missing Documentation + Send a request using the `HttpRequestData` GetAsync @@ -34,7 +34,7 @@ true false false - Missing Documentation + Sends a GET request to the specified URL. PostAsync @@ -60,7 +60,7 @@ true false false - Missing Documentation + Sends a POST request to the specified URL. PutAsync @@ -86,7 +86,7 @@ true false false - Missing Documentation + Sends a PUT request to the specified URL. DeleteAsync @@ -112,7 +112,7 @@ true false false - Missing Documentation + Sends a DELETE request to the specified url. PatchAsync @@ -138,10 +138,10 @@ true false false - Missing Documentation + Sends a PATCH request to the specified url. true false false - Missing Documentation + Http is a service used for HTTP communications and requests. diff --git a/xml/types/Image3D.xml b/xml/types/Image3D.xml index 0cd4867..17c4204 100644 --- a/xml/types/Image3D.xml +++ b/xml/types/Image3D.xml @@ -8,7 +8,7 @@ true false false - Missing Documentation + Specifies the image of the decal. TextureScale @@ -16,7 +16,7 @@ true false false - Missing Documentation + The scale of the texture on the decal. TextureOffset @@ -24,7 +24,7 @@ true false false - Missing Documentation + The offset of the texture on the decal. Color @@ -32,7 +32,7 @@ true false false - Missing Documentation + Determines the color of the decal. CastShadows @@ -40,7 +40,7 @@ true false false - Missing Documentation + Determines whether or not the decal should cast shadows. Shaded @@ -48,7 +48,7 @@ true false false - Missing Documentation + Determines whether or not the decal should be affected by lighting. FaceCamera @@ -56,10 +56,10 @@ true false false - Missing Documentation + Determines whether or not the decal should always face the camera. false false true - Missing Documentation + Decals are objects that can have an image texture and are placed in the world. diff --git a/xml/types/ImageAsset.xml b/xml/types/ImageAsset.xml index d97dbdb..91d06dc 100644 --- a/xml/types/ImageAsset.xml +++ b/xml/types/ImageAsset.xml @@ -5,5 +5,5 @@ false true false - Missing Documentation + Base class for image assets diff --git a/xml/types/InputAction.xml b/xml/types/InputAction.xml index f9d0f58..acc155c 100644 --- a/xml/types/InputAction.xml +++ b/xml/types/InputAction.xml @@ -5,5 +5,5 @@ false false false - Missing Documentation + Base class for input action diff --git a/xml/types/InputActionAxis.xml b/xml/types/InputActionAxis.xml index 1798731..bde8f4b 100644 --- a/xml/types/InputActionAxis.xml +++ b/xml/types/InputActionAxis.xml @@ -29,5 +29,5 @@ false false false - Missing Documentation +