From e7016b15259f8432e0a333a948498fb280d4d7a9 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Fri, 9 Aug 2019 03:13:15 +0200 Subject: Removed coord-based API from cCuboid. (#4362) --- Server/Plugins/APIDump/Classes/Geometry.lua | 96 ++--------------------------- 1 file changed, 6 insertions(+), 90 deletions(-) (limited to 'Server/Plugins/APIDump') diff --git a/Server/Plugins/APIDump/Classes/Geometry.lua b/Server/Plugins/APIDump/Classes/Geometry.lua index e9280b359..e086d23fa 100644 --- a/Server/Plugins/APIDump/Classes/Geometry.lua +++ b/Server/Plugins/APIDump/Classes/Geometry.lua @@ -570,28 +570,12 @@ return Params = { { - Name = "X1", - Type = "number", - }, - { - Name = "Y1", - Type = "number", - }, - { - Name = "Z1", - Type = "number", - }, - { - Name = "X2", - Type = "number", - }, - { - Name = "Y2", - Type = "number", + Name = "Point1", + Type = "Vector3i", }, { - Name = "Z2", - Type = "number", + Name = "Point2", + Type = "Vector3i", }, }, Notes = "Assigns all the coords to the specified values. Sort-state is ignored.", @@ -713,42 +697,6 @@ return }, Notes = "Creates a new Cuboid object with the specified point as both its corners (the cuboid has a size of 1 in each direction).", }, - { - Params = - { - { - Name = "X1", - Type = "number", - }, - { - Name = "Y1", - Type = "number", - }, - { - Name = "Z1", - Type = "number", - }, - { - Name = "X2", - Type = "number", - }, - { - Name = "Y2", - Type = "number", - }, - { - Name = "Z2", - Type = "number", - }, - }, - Returns = - { - { - Type = "cCuboid", - }, - }, - Notes = "Creates a new Cuboid object with the specified points as its corners.", - }, }, DifX = { @@ -868,30 +816,6 @@ return }, IsInside = { - { - Params = - { - { - Name = "X", - Type = "number", - }, - { - Name = "Y", - Type = "number", - }, - { - Name = "Z", - Type = "number", - }, - }, - Returns = - { - { - Type = "boolean", - }, - }, - Notes = "Returns true if the specified point (integral coords) is inside this cuboid. Assumes sorted.", - }, { Params = { @@ -940,16 +864,8 @@ return Params = { { - Name = "OffsetX", - Type = "number", - }, - { - Name = "OffsetY", - Type = "number", - }, - { - Name = "OffsetZ", - Type = "number", + Name = "Offset", + Type = "Vector3i", }, }, Notes = "Adds the specified offsets to each respective coord, effectively moving the Cuboid. Sort-state is ignored and preserved.", -- cgit v1.2.3