public abstract class TriggerLoaderX
extends Object
The purpose of this loader is to make the life of AoT trigger scripters easier. Just ask the users to include this load trigger in their scenario. This allows you to call any function and constant in this file from within any future trigger code.
Other than the basic functions, we have also provided a trigger framework for some of the new assets. Expect this framework to expand with every next release.
We accept trigger codes from everyone who is willing to offer them. Of course the authors get full credit for their work. Also additional ideas are welcome, so we can try to work them out for you.
So far it includes:Modifier and Type | Field and Description |
---|---|
static int |
cGameMode
The current game mode, possible options:
cGameModeSupremacy
cGameModeConquest
cGameModeLightning
cGameModeDeathmatch
|
static int |
cMyCiv
The civilization ID, can be:
cCivZeus
cCivHades
cCivPoseidon
cCivIsis
cCivRa
cCivSet
cCivLoki
cCivThor
cCivOdin
cCivGaia
cCivKronos
cCivOuranos
cCivGreek
cCivNorse
cCivEgyptian
cCivAtlantean
cCivRandom
cCivNature
|
static int |
cMyCulture
The culture ID, can be:
cCultureGreek
cCultureEgyptian
cCultureNorse
cCultureAtlantean
cCultureNature
|
static int |
cMyID
The current player number.
|
static int |
cNumberNonGaiaPlayers
The total number of players in a game, mother nature excluded.
|
static double |
e
The
double value that is closer than any other to
e, the base of the natural logarithms known as Euler's number. |
static double |
PI
The
double value that is closer than any other to
pi, the ratio of the circumference of a circle to its
diameter. |
Modifier and Type | Method and Description |
---|---|
static void |
clickAtPoint(vector point)
Forces the camera to the given point with zoomToPoint,
and issues a left mouse click command.
|
static void |
controlDoubleClickAtPoint(vector point)
Forces the camera to the given point with zoomToPoint,
and issues a left mouse control-double-click command.
|
static void |
controlShiftDoubleClickAtPoint(vector point)
Forces the camera to the given point with zoomToPoint,
and issues a left mouse control-shift-double-click command.
|
static void |
doubleClickAtPoint(vector point)
Forces the camera to the given point with zoomToPoint,
and issues a left mouse double-click command.
|
static void |
enterEditorMode()
Switches the current mode to editor mode.
|
static string |
getTime()
Returns a time string formatted as hh:mm:ss or mm:ss if the game does not last an hour yet.
|
static int |
getUnit(int unitType,
int action,
vector center)
Returns the ID of a unit matching the following criteria:
|
static bool |
kbIsMultiplayer()
Checks if the current game is played in singleplayer or multiplayer mode.
|
static int |
kbUnitQueryCreate2(string qname,
int unitType,
int action,
int statea,
int playera,
vector center,
bool sort,
float radiusa)
Creates and executes a unit query with the following results and returns the query ID.
|
static void |
leaveEditorMode()
Leaves the editor mode and returns to the actual game.
|
static void |
loadCameraOnline(string filename)
Load a camera position from a given file.
|
static float |
Math_abs(float a)
Returns the absolute value of the first argument.
|
static float |
Math_approx(float a,
float approx)
Returns an approximation of the given value to a certain accuracy.
|
static float |
Math_atan(float n)
Returns the arc tangent of a value; the returned angle is in the
range -PI/2 through PI/2.
|
static float |
Math_atan2(float z,
float x)
Returns the angle theta from the conversion of rectangular
coordinates (
x , y ) to polar
coordinates (r, theta). |
static int |
Math_boolToInt(bool a)
Converts a bool into an integer.
|
static float |
Math_cbrt(float s)
Returns the cubic root of a given value
|
static int |
Math_ceil(float a)
Returns the smallest (closest to negative infinity)
int value that is greater than or equal to the
argument and is equal to a mathematical integer.
|
static float |
Math_cos(float n)
Returns the trigonometric cosine of an angle.
|
static float |
Math_cosec(float n)
Returns the trigonometric cosecant of an angle.
|
static float |
Math_cosech(float n)
Returns the trigonometric cosecant hyperbolic of an angle.
|
static float |
Math_cosh(float n)
Returns the trigonometric cosine hyperbolic of an angle.
|
static float |
Math_cotan(float n)
Returns the trigonometric cotangent of an angle.
|
static float |
Math_cotanh(float n)
Returns the trigonometric cotangent hyperbolic of an angle.
|
static float |
Math_degreeToRadian(float degree)
Converts a degree into a radian.
|
static float |
Math_dist(vector a,
vector b)
Returns the distance between 2 points in a 3D location.
|
static float |
Math_exp(float a)
Returns Euler's number e raised to the power of a
float value. |
static float |
Math_fact(int n)
Returns the factorial of the given param.
|
static int |
Math_floatToInt(float a)
Converts a float into an int.
|
static int |
Math_floor(float a)
Returns the largest (closest to positive infinity)
int value that is less than or equal to the
argument and is equal to a mathematical integer.
|
static int |
Math_gcd(int a,
int b)
Returns the greatest common divisor of 2 values.
|
static vector |
Math_GetVectorial(vector a,
vector b,
float distance)
Unfortunately invent00r forgot what this is for, but he'll try to explain in version 3.
|
static vector |
Math_GetVectorialVector(vector a,
vector b,
float y)
Unfortunately invent00r forgot what this is for, but he'll try to explain in version 3.
|
static bool |
Math_intToBool(int a)
Converts an int value into a bool.
|
static float |
Math_intToFloat(int a)
Converts an int to a float.
|
static int |
Math_lcm(int a,
int b)
Returns the least common multiple of 2 values.
|
static float |
Math_ln(float a,
int acc)
Returns the natural logarithm (base e) of a
float
value. |
static float |
Math_log(float base,
float resa,
int acc)
Returns the logarithm with given base of a
float value. |
static float |
Math_log10(float resa,
int acc)
Returns the logarithm with base 10 of a
float value. |
static float |
Math_log2(float resa,
int acc)
Returns the logarithm with base 2 of a
float value. |
static float |
Math_max(float a,
float b)
Returns the highest of 2 params.
|
static float |
Math_min(float a,
float b)
Returns the lowest value of 2 params.
|
static float |
Math_mod(float a,
float b)
Returns the rest after division of 2 numbers.
|
static bool |
Math_pointIsInRectangle(vector topLeft,
vector bottomRight,
vector point)
Decides whether or not a point in 2D space is part of a rectangle.
|
static float |
Math_pow(float n,
int x)
Returns the value of the first argument raised to the power of the
second argument.
|
static vector |
Math_QF(float a,
float b,
float c)
Solves the quadratic formula to solve a quadratic equation.
|
static float |
Math_radianToDegree(float radian)
Converts a radian into a degree.
|
static float |
Math_rand()
Returns a
float value with a positive sign, greater
than or equal to 0.0 and less than 1.0 . |
static int |
Math_round(float a)
Returns the closest int near the given float.
|
static float |
Math_sec(float n)
Returns the trigonometric secant of an angle.
|
static float |
Math_sech(float n)
Returns the trigonometric secant hyperbolic of an angle.
|
static int |
Math_sign(float a)
Returns the signum function of the argument; zero if the argument
is zero, 1 if the argument is greater than zero, -1 if the
argument is less than zero.
|
static float |
Math_sin(float n)
Returns the trigonometric sine of an angle.
|
static float |
Math_sinh(float n)
Returns the trigonometric sine hyperbolic of an angle.
|
static float |
Math_sqrt(float s)
Returns the square root of a given value.
|
static float |
Math_tan(float n)
Returns the trigonometric tangent of an angle.
|
static float |
Math_tanh(float n)
Returns the trigonometric tangent hyperbolic of an angle.
|
static void |
print(string text)
Outputs a piece of text to the game.
|
static void |
rightClickAtPoint(vector point)
Forces the camera to the given point with zoomToPoint,
and issues a right mouse click command.
|
static void |
saveCameraOnline(string filename)
Saves the current camera position (in-game, not in the editor) to a given file.
|
static void |
shiftClickAtPoint(vector point)
Forces the camera to the given point with zoomToPoint,
and issues a left mouse shift-click command.
|
static void |
shiftDoubleClickAtPoint(vector point)
Forces the camera to the given point with zoomToPoint,
and issues a left mouse shift-double-click command.
|
static string |
String_charAt(string sText,
int pos)
Returns a character from a given string at the given position.
|
static int |
String_length(string sText)
Returns the length of a given string.
|
static float |
String_parseFloat(string sText)
Converts a String that only holds a float into a real floating point number.
|
static string |
String_substr(string sText,
int startPos,
int endPos)
Returns a substring of a given string from the given start position to the end position.
|
static string |
String_toLowerCase(string sText)
Converts the input string to lower case [a-z].
|
static string |
String_toString(float a)
Converts a floating point number to a string.
|
static string |
String_toUpperCase(string sText)
Converts the input string to upper case [A-Z].
|
static int |
trGetUnitOwner(string unitName)
Returns the current owner of the unit.
|
static int |
trGetUnitOwnerByID(int unitID)
Returns the current owner of the unit.
|
static void |
trQuestVarArmyEcho(string QVAname)
Echoes the army QV to the output.
|
static string |
trQuestVarArmyGet(string QVAname)
Returns the army assigned to the given army QV.
|
static int |
trQuestVarArmyGetID(string QVAname)
Returns the army ID of the given army QV.
|
static int |
trQuestVarArmyGetPlayerID(string QVAname)
Returns the player ID of the given army QV.
|
static void |
trQuestVarArmySet(string QVAname,
vector army)
Assigns an army to the given army QV.
|
static void |
trRunEditorConsoleCommand(string cmd)
Executes a console command that can only run in editor mode.
|
static void |
trStringQuestVarEcho(string SQVname)
Echoes the SQV to the output.
|
static string |
trStringQuestVarGet(string SQVname)
Returns the string assigned to the given string QV.
|
static void |
trStringQuestVarSet(string SQVname,
string SQVvalue)
Assigns a string to a given string QV.
|
static void |
trVectorQuestVarEcho(string VQVname)
Echoes the VQV to the output.
|
static vector |
trVectorQuestVarGet(string VQVname)
Returns the vector assigned to the given VQV.
|
static float |
trVectorQuestVarGetX(string VQVname)
Returns the X component of the given VQV.
|
static float |
trVectorQuestVarGetY(string VQVname)
Returns the Y component of the given VQV.
|
static float |
trVectorQuestVarGetZ(string VQVname)
Returns the Z component of the given VQV.
|
static void |
trVectorQuestVarSet(string VQVname,
vector QVv)
Assigns a vector(X,Y,Z) to a VQV.
|
static void |
uiHeroizeUnit(string unitName,
int playerID)
Heroizes the given unit.
|
static void |
uiRandomLightning()
Sets the lightning completely random.
|
static void |
uiResetCamera()
Resets the camera to its default position.
|
static void |
uiSelectIdleType(string type)
Selects an idle unit of the given type, but does not focus on it.
|
static void |
uiSelectType(string type)
Selects a unit of the given type, but does not focus on it.
|
static void |
uiSelectUnit(int playerID,
string unitName)
UI selects the unit, i.e.
|
static void |
uiSelectUnitByID(int playerID,
int unitID)
UI selects the unit, i.e.
|
static void |
uiTrainUnit(string protoUnit,
string buildingUnitName,
bool repeat,
int playerID)
Trains a unit using the UI commands.
|
static int |
xsArrayCreate(string ArrayName,
int dimX,
int dimY,
float defaultvalue)
Creates a new array of float values, with given dimensions and default value.
|
static bool |
xsArrayDelete(int Aid,
int posX)
Deletes an X-column from the array.
|
static void |
xsArrayEcho(string AName,
int posX,
int posY)
Echoes a value in the array to the output.
|
static void |
xsArrayEchoAll(string AName)
Echoes all values in the array to the output, in a linear manner.
|
static void |
xsArrayEchoAll2(string AName)
Echoes all values in the array to the output, in a matrix formation.
|
static bool |
xsArrayEqual(string AName1,
string AName2)
Returns true if both arrays have the same content.
|
static bool |
xsArrayFill(int Aid,
float defaultvalue,
float replaceVal)
Fills the given array with a given value.
|
static bool |
xsArrayFillByName(string ArrayName,
float defaultvalue,
float replaceVal)
Fills the given array with a given value.
|
static int |
xsArrayFind(int Aid,
int posY,
int nFind)
Tries to find a value in a given row of the provided array.
|
static float |
xsArrayGet(int Aid,
int posX,
int posY)
Gets a value from the given array.
|
static float |
xsArrayGetByName(string ArrayName,
int posX,
int posY)
Gets a value from the given array.
|
static float |
xsArrayGetDefaultValue(int Aid)
Returns the default value of the given array.
|
static int |
xsArrayGetID(string ArrayName)
Converts an array name to an array ID.
|
static vector |
xsArrayGetSize(int Aid)
Returns the size of the array.
|
static vector |
xsArrayGetSizeByName(string ArrayName)
Returns the size of the array.
|
static int |
xsArrayGetSizeX(int Aid)
Returns the X-size of the given array.
|
static int |
xsArrayGetSizeXByName(string ArrayName)
Returns the X-size of the given array.
|
static int |
xsArrayGetSizeY(int Aid)
Returns the Y-size of the given array.
|
static int |
xsArrayGetSizeYByName(string ArrayName)
Returns the Y-size of the given array.
|
static bool |
xsArrayResize(int Aid,
int newSizeX,
int newSizeY)
Resizes the given array, filling new spots with the default value.
|
static bool |
xsArraySet(int Aid,
float value,
int posX,
int posY)
Sets a value of the array.
|
static bool |
xsArraySetByName(string ArrayName,
float value,
int posX,
int posY)
Sets a value of the array.
|
static bool |
xsArraySetDefaultValue(int Aid,
float defaultvalue)
Sets the default value of the given array.
|
static bool |
xsArraySort(int Aid,
int posY,
bool Descending)
Sort a given row of the array, in chosen order.
|
static bool |
xsArraySwap(int Aid,
int lineA,
int lineB)
Swaps 2 columns in the given array.
|
static bool |
xsArraySwapByName(string ArrayName,
int lineA,
int lineB)
Swaps 2 columns in the given array.
|
static void |
xsRestoreContextPlayer()
Restores the previously saved context player.
|
static void |
xsSaveAndSetContextPlayer(int playerID)
Sets a new context player, and saves the previous one.
|
static void |
zoomToPoint(vector point)
Forced the camera to look straight down to 1 point.
|
public static final double PI
double
value that is closer than any other to
pi, the ratio of the circumference of a circle to its
diameter.public static final double e
double
value that is closer than any other to
e, the base of the natural logarithms known as Euler's number.public static final int cMyID
public static final int cNumberNonGaiaPlayers
public static final int cMyCulture
public static final int cMyCiv
public static final int cGameMode
public static string String_substr(string sText, int startPos, int endPos)
sText
- the input stringstartPos
- the position to start atendPos
- the position to endpublic static int String_length(string sText)
sText
- the input stringpublic static string String_charAt(string sText, int pos)
sText
- the input stringpos
- the position of the wanted charpublic static string String_toUpperCase(string sText)
sText
- the input stringpublic static string String_toLowerCase(string sText)
sText
- the input stringpublic static float String_parseFloat(string sText)
sText
- the input stringpublic static string String_toString(float a)
a
- the input floatpublic static float Math_mod(float a, float b)
a
- b
- public static int Math_floor(float a)
a
- public static int Math_ceil(float a)
a
- public static float Math_radianToDegree(float radian)
radian
- public static float Math_degreeToRadian(float degree)
degree
- public static bool Math_intToBool(int a)
a
- public static int Math_boolToInt(bool a)
a
- public static float Math_intToFloat(int a)
a
- public static int Math_floatToInt(float a)
a
- public static float Math_pow(float n, int x)
n
- x
- public static float Math_abs(float a)
a
- public static float Math_fact(int n)
n
- public static int Math_round(float a)
a
- public static float Math_approx(float a, float approx)
a
- the value to approximateapprox
- the required accuracypublic static int Math_gcd(int a, int b)
a
- b
- public static int Math_lcm(int a, int b)
a
- b
- public static float Math_atan(float n)
n
- angle in radianspublic static float Math_atan2(float z, float x)
x
, y
) to polar
coordinates (r, theta).
This method computes the phase theta by computing an arc tangent
of y/x
in the range of -PI to PI.z
- the ordinate coordinatex
- the abscissa coordinatepublic static float Math_cos(float n)
n
- angle in radianspublic static float Math_sin(float n)
n
- angle in radianspublic static float Math_tan(float n)
n
- angle in radianspublic static float Math_cotan(float n)
n
- angle in radianspublic static float Math_sec(float n)
n
- angle in radianspublic static float Math_cosec(float n)
n
- angle in radianpublic static float Math_sinh(float n)
n
- angle in radianspublic static float Math_cosh(float n)
n
- angle in radianspublic static float Math_tanh(float n)
n
- angle in radianspublic static float Math_cotanh(float n)
n
- angle in radianspublic static float Math_sech(float n)
n
- angle in radianspublic static float Math_cosech(float n)
n
- angle in radianspublic static float Math_sqrt(float s)
s
- public static float Math_cbrt(float s)
s
- public static vector Math_QF(float a, float b, float c)
a
- the a as in ax� + bx + cb
- the b as in ax� + bx + cc
- the c as in ax� + bx + cpublic static float Math_max(float a, float b)
a
- b
- public static float Math_min(float a, float b)
a
- b
- public static float Math_dist(vector a, vector b)
a
- the 1st pointb
- the 2nd pointpublic static float Math_exp(float a)
float
value.a
- public static float Math_ln(float a, int acc)
float
value.a
- the value to calculate ln onacc
- the wanted accuracy: higher accuracy(1000+) will slow down calculationpublic static float Math_log(float base, float resa, int acc)
float
value.base
- the base value of the logarithmresa
- the value to calculate log onacc
- the wanted accuracy: higher accuracy(1000+) will slow down calculationpublic static float Math_log2(float resa, int acc)
float
value.resa
- the value to calculate log2 onacc
- the wanted accuracy: higher accuracy(1000+) will slow down calculationpublic static float Math_log10(float resa, int acc)
float
value.resa
- the value to calculate log10 onacc
- the wanted accuracy: higher accuracy(1000+) will slow down calculationpublic static float Math_rand()
float
value with a positive sign, greater
than or equal to 0.0
and less than 1.0
.
Returned values are chosen pseudorandomly with (approximately)
uniform distribution from that range.public static int Math_sign(float a)
a
- public static bool Math_pointIsInRectangle(vector topLeft, vector bottomRight, vector point)
topLeft
- the topleft point of the rectanglebottomRight
- the bottomright point of the rectanglepoint
- the point to checkpublic static vector Math_GetVectorial(vector a, vector b, float distance)
a
- b
- distance
- public static vector Math_GetVectorialVector(vector a, vector b, float y)
a
- b
- y
- public static void uiSelectUnit(int playerID, string unitName)
playerID
- the owner of the unitunitName
- the scenario name of this unit
public static void uiSelectUnitByID(int playerID, int unitID)
playerID
- the owner of the unitunitID
- the unit ID�
public static void uiResetCamera()
public static void uiRandomLightning()
public static void uiSelectType(string type)
type
- the unit type to select
public static void uiSelectIdleType(string type)
type
- the unit type to select
public static void uiTrainUnit(string protoUnit, string buildingUnitName, bool repeat, int playerID)
protoUnit
- the protounit to trainbuildingUnitName
- the scenario name of the building to train the unit fromrepeat
- turn autoqueue on or not?playerID
- the player that should train the unit
public static void uiHeroizeUnit(string unitName, int playerID)
unitName
- the scenario name of the unitplayerID
- the owner of the unitpublic static void xsSaveAndSetContextPlayer(int playerID)
playerID
- the new context player- Author:
- Mythic_Freak
public static void xsRestoreContextPlayer()
- Author:
- Mythic_Freak
public static bool kbIsMultiplayer()
public static int trGetUnitOwnerByID(int unitID)
unitID
- the unit ID to checkpublic static int trGetUnitOwner(string unitName)
unitName
- the scenario name of the unitpublic static void enterEditorMode()
public static void leaveEditorMode()
public static void trRunEditorConsoleCommand(string cmd)
cmd
- the command to execute
public static int getUnit(int unitType, int action, vector center)
unitType
- the type of the unitaction
- the current action of the unitcenter
- the unit closest to this point will be returned if it is provided, else it will pick a random unit from the results.public static int kbUnitQueryCreate2(string qname, int unitType, int action, int statea, int playera, vector center, bool sort, float radiusa)
qname
- the name of the queryunitType
- the unit type to search foraction
- the current action of the unitstatea
- the current state of the unitplayera
- the unit ownercenter
- if sort is enabled the results will be sorted based on the distance to this point, ascendingsort
- true if the results should be sorted in ascending orderradiusa
- the max radius the units may be from the center pointpublic static void print(string text)
text
- the text for output
public static string getTime()
public static void saveCameraOnline(string filename)
filename
- the name of the file to store the camera position
public static void loadCameraOnline(string&nbnbsp;filename)
filename
- the name of the file to retrieve the camera postion from
public static void zoomToPoint(vector point)
point
- the point to zoom at.
public static void clickAtPoint(vector point)
point
- the point to click
public static void shiftClickAtPoint(vector point)
point
- the point to click
public static void doubleClickAtPoint(vector point)
point
- the point to click
public static void shiftDoubleClickAtPoint(vector point)
point
- the point to click
public static void controlDoubleClickAtPoint(vector point)
point
- the point to click
public static void controlShiftDoubleClickAtPoint(vector point)
point
- the point to click
public static void rightClickAtPoint(vector point)
point
- the point to click
public static void trVectorQuestVarSet(string VQVname, vector QVv)
VQVname
- the vector QV nameQVv
- the vector to assign
public static vector trVectorQuestVarGet(string VQVname)
VQVname
- the vector QV namepublic static float trVectorQuestVarGetX(string VQVname)
VQVname
- the vector QV namepublic static float trVectorQuestVarGetY(string VQVname)
VQVname
- the vector QV namepublic static float trVectorQuestVarGetZ(string VQVname)
VQVname
- the vector QV namepublic static void trVectorQuestVarEcho(string VQVname)
VQVname
- the vector QV to echo
public static void trStringQuestVarSet(string SQVname, string SQVvalue)
SQVname
- the string QV nameSQVvalue
- the value to be assigned
public static string trStringQuestVarGet(string SQVname)
SQVname
- the string QVpublic static void trStringQuestVarEcho(string SQVname)
SQVname
- the string QV to echo
public static void trQuestVarArmySet(string QVAname, vector army)
QVAname
- the army QVarmy
- public static string trQuestVarArmyGet(string QVAname)
QVAname
- the army QVpublic static int trQuestVarArmyGetID(string QVAname)
QVAname
- the army QVpublic static int trQuestVarArmyGetPlayerID(string QVAname)
QVAname
- the army QVpublic static void trQuestVarArmyEcho(string QVAname)
QVAname
- the army QV
public static int xsArrayGetID(string ArrayName)
ArrayName
- the array namepublic static vector xsArrayGetSizeByName(string ArrayName)
ArrayName
- the name of the arraypublic static int xsArrayGetSizeXByName(string ArrayName)
ArrayName
- the name of the arraypublic static int xsArrayGetSizeYByName(string ArrayName)
ArrayName
- the name of the arraypublic static vector xsArrayGetSize(int Aid)
Aid
- the ID of the arraypublic static int xsArrayGetSizeX(int Aid)
Aid
- the ID of the arraypublic static int xsArrayGetSizeY(int Aid)
Aid
- the ID of the arraypublic static bool xsArraySetDefaultValue(int Aid, float defaultvalue)
Aid
- the array IDdefaultvalue
- the default value to setpublic static float xsArrayGetDefaultValue(int Aid)
Aid
- the array IDpublic static bool xsArraySetByName(string ArrayName, float value, int posX, int posY)
ArrayName
- the name of the arrayvalue
- the value to setposX
- the X-positionposY
- the Y-positionpublic static bool xsArraySet(int Aid, float value, int posX, int posY)
Aid
- the ID of the arrayvalue
- the value to setposX
- the X-positionposY
- the Y-positionpublic static bool xsArrayFill(int Aid, float defaultvalue, float replaceVal)
Aid
- the array IDdefaultvalue
- the value to fill the array withreplaceVal
- if this value is set, only those values will be overwritten in the array.public static bool xsArrayFillByName(string ArrayName, float defaultvalue, float replaceVal)
ArrayName
- the name of the arraydefaultvalue
- the value to fill the array withreplaceVal
- if this value is set, only those values will be overwritten in the array.public static bool xsArrayResize(int Aid, int newSizeX, int newSizeY)
Aid
- the array IDnewSizeX
- the new X-sizenewSizeY
- the new Y-sizepublic static int xsArrayCreate(string ArrayName, int dimX, int dimY, float defaultvalue)
ArrayName
- the array namedimX
- the X-sizedimY
- the Y-sizedefaultvalue
- the default valuepublic static float xsArrayGetByName(string ArrayName, int posX, int posY)
ArrayName
- the array nameposX
- the X-positionposY
- the Y-positionpublic static float xsArrayGet(int Aid, int posX, int posY)
Aid
- the array IDposX
- the X-positionposY
- the Y-positionpublic static void xsArrayEcho(string AName, int posX, int posY)
AName
- the name of the arrayposX
- the X-positionposY
- the Y-position
public static void xsArrayEchoAll(string AName)
AName
- the name of the array
public static void xsArrayEchoAll2(string AName)
AName
- the name of the array
public static bool xsArrayEqual(string AName1, string AName2)
AName1
- the name of array 1AName2
- the name of array 2public static bool xsArraySwapByName(string ArrayName, int lineA, int lineB)
ArrayName
- the name of the arraylineA
- column 1 to swaplineB
- column 2 to swappublic static bool xsArraySwap(int Aid, int lineA, int lineB)
Aid
- the ID of the arraylineA
- column 1 to swaplineB
- column 2 to swappublic static bool xsArraySort(int Aid, int posY, bool Descending)
Aid
- the array IDposY
- the row to sortDescending
- the compare operatorpublic static int xsArrayFind(int Aid, int posY, int nFind)
Aid
- the array IDposY
- the row numbernFind
- the value to search forpublic static bool xsArrayDelete(int Aid, int posX)
Aid
- the array IDposX
- the column to delete