Enforce script system methods.
More...
|
enum | EPlatform {
EPlatform.WINDOWS
, EPlatform.LINUX
, EPlatform.XBOX_ONE
, EPlatform.XBOX_ONE_S
,
EPlatform.XBOX_ONE_X
, EPlatform.XBOX_SERIES_S
, EPlatform.XBOX_SERIES_X
, EPlatform.PS4
,
EPlatform.PS5
, EPlatform.UNKNOWN
} |
|
enum | FileAttribute {
FileAttribute.DIRECTORY
, FileAttribute.HIDDEN
, FileAttribute.READONLY
, FileAttribute.COMPRESSED
,
FileAttribute.ARCHIVE
, FileAttribute.SYSTEM
, FileAttribute.NOINDEXED
, FileAttribute.ENCRYPTED
,
FileAttribute.ISCREATOR
, FileAttribute.INVALID
} |
| File attributes. See FileDescription. More...
|
|
enum | FileMode {
FileMode.READ
, FileMode.OPENW
, FileMode.WRITE
, FileMode.APPEND
,
FileMode.MASK
, FileMode.FILEFLAGS_NO_PREREAD
} |
| Mode for opening file. See FileSystem::Open. More...
|
|
enum | ESystemLocation { ESystemLocation.Both
, ESystemLocation.Client
, ESystemLocation.Server
} |
|
enum | ESystemPoint {
ESystemPoint.FrameStartBegin
, ESystemPoint.FrameStart
, ESystemPoint.Frame
, ESystemPoint.BeforeFixedFrame
,
ESystemPoint.FixedFrame
, ESystemPoint.AfterFixedFrame
, ESystemPoint.AfterSimulation
, ESystemPoint.BeforePhysics
,
ESystemPoint.SimulatePhysics
, ESystemPoint.PostSimulatePhysics
, ESystemPoint.AfterPhysics
, ESystemPoint.PostFrame
,
ESystemPoint.BeforePostFixedFrame
, ESystemPoint.PostFixedFrame
, ESystemPoint.AfterPostFixedFrame
, ESystemPoint.AfterPostSimulation
} |
|
Enforce script system methods.
◆ FindFilesCallback
◆ ScreenshotCallback
screenshot callback API, returned data are in RGBA8 format -> each channel has 8 bits and four channels are used thus size in bytes for one pixel is 4 and the int type can be used for simpler work
example how to access pixel data on further c++ side:
for (int y = 0; y < height; y++)
{
int const* row = (int const*) (((char const*) data) + stride);
for (int x = 0; x < width; x++)
{
int pixel = row[x];
...
}
}
- Parameters
-
pixels | pointer to pixels |
width | width of image data |
height | height of image data |
stride | stride is offset to next row - it doesn't need to be same like image width due to GPU data alignment rules |
◆ SearchResourcesCallback
◆ EPlatform
Enumerator |
---|
WINDOWS | |
LINUX | |
XBOX_ONE | |
XBOX_ONE_S | |
XBOX_ONE_X | |
XBOX_SERIES_S | |
XBOX_SERIES_X | |
PS4 | |
PS5 | |
UNKNOWN | |
◆ ESystemLocation
Enumerator |
---|
Both | |
Client | |
Server | |
◆ ESystemPoint
Enumerator |
---|
FrameStartBegin | |
FrameStart | |
Frame | |
BeforeFixedFrame | |
FixedFrame | |
AfterFixedFrame | |
AfterSimulation | |
BeforePhysics | |
SimulatePhysics | |
PostSimulatePhysics | |
AfterPhysics | |
PostFrame | |
BeforePostFixedFrame | |
PostFixedFrame | |
AfterPostFixedFrame | |
AfterPostSimulation | |
◆ FileAttribute
File attributes. See FileDescription.
Enumerator |
---|
DIRECTORY | File is directory.
|
HIDDEN | File is hidden.
|
READONLY | File is read-only.
|
COMPRESSED | File is from compressed archive.
|
ARCHIVE | File is archived.
|
SYSTEM | |
NOINDEXED | |
ENCRYPTED | |
ISCREATOR | For consoles, it indicates, that the file is created by current user.
|
INVALID | |
◆ FileMode
Mode for opening file. See FileSystem::Open.
Enumerator |
---|
READ | File is readonly.
|
OPENW | File is just opened for write.
|
WRITE | File is read-write. When do not exists, it's created.
|
APPEND | File pointer is set to end of file.
|
MASK | |
FILEFLAGS_NO_PREREAD | |
◆ FindFilesCallback()
◆ ScreenshotCallback()
◆ SearchResourcesCallback()