82proto
volatile native
void EndSound(HSOUND snd);
86proto native
int SetSoundFrequency(HSOUND sound,
int freq)
90proto native
int GetSoundLength(HSOUND sound)
93proto native
int GetSoundPosition(HSOUND sound)
104class PacketOutputAdapter
171proto native
int SetSkyPreset(
string presetName,
float stormy,
float dayTime);
182proto native
int LerpSkyPreset(
string presetName1,
string presetName2,
float dayTime,
float stormy1,
float stormy2,
float lerpVal);
197proto native
int LerpSkyPreset3(
string presetName1,
string presetName2,
string presetName3,
float dayTime,
float stormy1,
float stormy2,
float stormy3,
float w1,
float w2,
float w3);
212proto native
bool SetSkyPlanet(
int index,
float azimuthDeg,
float zenithDeg);
231proto native
void SetStarsObserverTime(
int year,
int month,
int day,
int hour,
int minute,
float sec,
int offsetSec);
274 proto
bool SetParam(
string propertyName,
void value);
307 x =
x * 127.0 + 128.0;
308 y =
y * 127.0 + 128.0;
309 z = z * 127.0 + 128.0;
317 return r | g | b | a;
322int ARGB(
int a,
int r,
int g,
int b)
327 return a | r | g | b;
332int ARGBF(
float fa,
float fr,
float fg,
float fb)
334 return ARGB((
float)(fa * 255.0), (
float)(fr * 255.0), (
float)(fg * 255.0), (
float)(fb * 255.0));
340 return a << 24 | 0xffffff;
347 const int cmask = 0x00ff00ff;
349 cb1 = c1 >> 8 & cmask;
350 cb2 = c2 >> 8 & cmask;
351 cb1 = cb1 + cb2 >> 1;
357 return cb1 << 8 | c1;
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
Super root of all classes in Enforce script.
proto bool SetParam(string propertyName, void value)
set parametr of material by string name
proto void SetParamByIndex(int paramIndex, void value)
set parametr of material by index
proto native void ResetParam(string propertyName)
reset parametr of material to default value
proto native int GetParamIndex(string paramName)
set parametr index for faster access to material properties
proto native IEntitySource ToEntitySource()
proto native void SetSoundVolume(float vol, float time)
enum MagnumStableStateID init
proto native void WriteIntAsUHalf(int value)
proto native void SetRealStarAutoUpdate(bool update)
update of stars
proto native int LoadSkyPresets(string presetsFile)
load all sky presets from xml file
int ARGB(int a, int r, int g, int b)
proto native void SetSkyUserPlanets(bool enabled)
user can set planets to its own positions on skydome using SetSkyPresetPlanet function,...
proto native int SetSkyPreset(string presetName, float stormy, float dayTime)
set sky preset to day time and stormy parameter
proto native void SetStarsObserverTime(int year, int month, int day, int hour, int minute, float sec, int offsetSec)
set UTC time for real time stars
proto native void WriteIntAsHalf(int value)
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.
proto native void MakeScreenshot(string name)
makes screenshot and stores it in to a DDS format file if the name begins with '$' the screenshot in ...
int VectortoRGBA(vector vec, float h)
proto native void SetStarsRotMatrix(vector mat[3])
stars rotation matrix, is different from night rotation matrix because we don't know the time when ni...
proto native void WriteVector(vector value)
proto native bool SetSkyPlanet(int index, float azimuthDeg, float zenithDeg)
set planet position
proto native void WriteInt(int value)
proto native int InitSky(string presetName)
initialize sky with preset, must be called to set the global planets setting
proto native int LerpSkyPreset3(string presetName1, string presetName2, string presetName3, float dayTime, float stormy1, float stormy2, float stormy3, float w1, float w2, float w3)
lerp three sky presets using barycentric coordinates and set the result using day time
proto native void WriteFloatAsByte(float value, float min, float max)
proto native int GetFPS()
Returns actual fps (average in last 10 frames).
proto native void WriteMatrixAsQuaternionVector(vector mat[4])
proto native void WriteString(string value)
proto native int LerpSkyPreset(string presetName1, string presetName2, float dayTime, float stormy1, float stormy2, float lerpVal)
lerp two sky presets and set the result using day time
proto native void SetNightLayerRotMatrix(vector mat[3])
night sky layer rotation matrix
proto native bool SetSkyPlanetSize(int index, float angleDeg)
set planet size in degrees
proto native void WriteIntAsUByte(int value)
class PacketInputAdapter WriteBool
proto native void SetStarsObserverPosition(float latitudeDeg, float longitudeDeg)
set observer position
proto native void WriteIntAsByte(int value)
proto native void WriteFloatAsHalf(float value, float min, float max)
proto native void WriteFloat(float value)
int LerpARGB(int c1, int c2)