53proto
void DebugBreak(
bool condition =
true,
void param1 = NULL,
void param2 = NULL,
void param3 = NULL,
void param4 = NULL,
void param5 = NULL,
void param6 = NULL,
void param7 = NULL,
void param8 = NULL,
void param9 = NULL);
87proto native
void Error2(
string title,
string err);
108proto
void PrintFormat(
string fmt,
void param1 = NULL,
void param2 = NULL,
void param3 = NULL,
void param4 = NULL,
void param5 = NULL,
void param6 = NULL,
void param7 = NULL,
void param8 = NULL,
void param9 = NULL);
156 proto
private void ~Shape();
170 proto
static native
Shape CreateFrustum(
float horizontalAngle,
float verticalAngle,
float length,
int color,
ShapeFlags flags);
171 proto
static native
Shape CreateCylinder(
int color,
ShapeFlags flags,
vector origin,
float radius,
float length);
180 vector dir2 = dir.Perpend() * size;
185 pts[2] = to - dir1 - dir2;
186 pts[3] = to - dir1 + dir2;
189 return CreateLines(color, flags, pts, 5);
200 vector dir2 = dir.Perpend() * size;
204 pts[1] = from +
"0 0 1";
205 pts[2] = to +
"0 0 1";
207 pts[4] = to - dir1 - dir2;
208 pts[5] = to - dir1 + dir2;
211 return CreateLines(color, flags, pts, 7);
214 static void CreateMatrix(
vector mat[4],
float axisLength = 0.05,
float arrowSize = 0.0)
219 Create(
ShapeType.LINE, 0xFFFF0000, flags, mat[3], mat[3] + axisLength * mat[0]);
220 Create(
ShapeType.LINE, 0xFF00FF00, flags, mat[3], mat[3] + axisLength * mat[1]);
221 Create(
ShapeType.LINE, 0xFF0000FF, flags, mat[3], mat[3] + axisLength * mat[2]);
225 CreateArrow(mat[3], mat[3] + axisLength * mat[0], arrowSize, 0xFFFF0000, flags);
226 CreateArrow(mat[3], mat[3] + axisLength * mat[1], arrowSize, 0xFF00FF00, flags);
227 CreateArrow(mat[3], mat[3] + axisLength * mat[2], arrowSize, 0xFF0000FF, flags);
243 static proto
bool IsInitialized();
246 static proto
void InitScriptDiags();
248 static proto
void ClearScriptDiags();
256 static proto
void RegisterMenu(
int id,
string name,
int parent);
267 static proto
void RegisterItem(
int id,
string shortcut,
string name,
int parent,
string values,
func callback = null);
280 static proto
void RegisterBool(
int id,
string shortcut,
string name,
int parent,
bool reverse =
false,
func callback = null);
291 static proto
void RegisterRange(
int id,
string shortcut,
string name,
int parent,
string valuenames,
func callback = null);
294 static proto
void Unregister(
int id);
317 static proto
bool BindCallback(
int id,
func callback);
319 static proto
void UnbindCallback(
int id);
322 static proto
bool GetBool(
int id,
bool reverse =
false);
326 static proto
void SetValue(
int id,
int value);
329 static proto
float GetRangeValue(
int id);
331 static proto
void SetRangeValue(
int id,
float value);
334 static proto
int GetEngineValue(
int id);
336 static proto
void SetEngineValue(
int id,
int value);
339 static proto
float GetEngineRangeValue(
int id);
341 static proto
void SetEngineRangeValue(
int id,
float value);
344 static proto
bool MenuExists(
string name);
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
bool IsRegistered()
Get whether this Effect is registered in SEffectManager.
proto native void Error2(string title, string err)
Messagebox with error message.
void Error(string err)
Messagebox with error message.
proto void DumpStack()
Prints current call stack (stack trace)
proto void Print(void var)
Prints content of variable to console/log.
proto void DebugBreak(bool condition=true, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Triggers breakpoint in C++ in run time(when app is running in debug enviroment)
proto void DumpStackString(out string stack)
Prints current call stack (stack trace) to given output.
proto void DPrint(string var)
Prints content of variable to console/log. Should be used for critical messages so it will appear in ...
proto void PrintToRPT(void var)
Prints content of variable to RPT file (performance warning - each write means fflush!...
void CompileBreak()
Triggers breakpoint in C++ in compile time(when app is running in debug enviroment)
proto void PrintFormat(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Prints formated text to console/log.
proto void ErrorExString(string err, out string str, ErrorExSeverity severity=ErrorExSeverity.ERROR)
proto native void SetPosition(vector position)
Set the world position of the Effect.
proto native void SetDirection(vector direction)
proto native void Destroy()
Cleans up the Effect, including unregistering if needed.
proto native void SetColor(int color)
proto native void SetMatrix(vector mat[4])
proto native void SetFlags(ShapeFlags flags)
proto native void GetMatrix(out vector mat[4])
proto native vector Vector(float x, float y, float z)
Vector constructor from components.