Unimplemented or Redundant Functions

From Danmakufu Wiki
Jump to: navigation, search

successor

Arguments:
 1) value

Adds 1 to the value, then returns it. Redundant, use the ++ operator.

predecessor

Arguments:
 1) value

Subtracts 1 from the value, then returns it. Redundant, use the -- operator.

negative

Arguments:
 1) value

Multiplies -1 to the value, then returns it. Redundant, use the - operator.

not

Arguments:
    1) boolean
Return value
    boolean

Reverses the given boolean, then returns it. Redundant, use the ! operator.

add

Arguments:
 1) value 1
 2) value 2

Returns the sum of two values.

Redundant; use +. Note: there is a quirk with using add (or the associated operator +) or subtract (-) with strings. Since arrays can be added element-by-element, adding two strings of equal length actually returns a string with the character codes from each string added for each character. The result is somehow incompatible with ordinary strings, but it can be used with strings by calling ToString on it.

subtract

Arguments:
 1) value 1
 2) value 2

Returns the difference of two values. Redundant; use -

multiply

Arguments:
 1) value 1
 2) value 2

Returns the product of two values. Redundant; use *

divide

Arguments:
 1) value 1
 2) value 2

Returns the quotient of two values. Redundant; use /

remainder

Arguments:
 1) dividend
 2) divisor

Returns the modulo operation (the remainder of a quotient) of two values.

Redundant; use %

Example: remainder(10,3) or 10 % 3 will return 1 because 10/3 equals 3 with a remainder of 1.

Note: remainder or % will always return a value with the same sign as the divisor. For example, -7 % 4 equals 1 and 7 % -4 equals -1.

power

Arguments:
 1) base
 2) exponent

Returns base raised to the power exponent. Redundant; use ^


ObjTrajectory3D_SetComplementCount

Unimplemented.

ObjTrajectory3D_SetAlphaVariation

Unimplemented.

ObjTrajectory3D_SetInitialPoint

Unimplemented.

ObjRender_SetRalativeObject

Unimplemented.

ObjRender_SetCullingMode

Arguments:
    1) object ID (real)
    2) culling (real)

Culling modes:

  • CULL_NONE
  • CULL_CW
  • CULL_CCW

Unimplemented.