MiniQuake2

src/miniquake2/runtime/save_metadata.ml

Provides miniquake2 runtime save metadata facilities for this project.

Package
miniquake2.runtime.save_metadata
Reachable
Yes

Imports

Declarations

currentTimestamp

function currentTimestamp()

Return the current timestamp value.

View source

decode

function decode(saveMetadataDecodeText)

Decode state.

ParameterTypeDefaultDescription
saveMetadataDecodeTextdynamic—saveMetadataDecodeText value consumed by this operation.

View source

encode

function encode(saveMetadataEncodeInput)

Encodes encode for the miniquake2 runtime save metadata workflow.

ParameterTypeDefaultDescription
saveMetadataEncodeInputdynamic—saveMetadataEncodeInput value consumed by this operation.

View source

fourDigits

function fourDigits(saveMetadataFourValue)

Return the four digits value.

ParameterTypeDefaultDescription
saveMetadataFourValuedynamic—saveMetadataFourValue value consumed by this operation.

View source

GetLocalTime

extern function GetLocalTime(systemTime as bytes) from "kernel32.dll" returns void

Invokes the native GetLocalTime entry point used by the miniquake2 runtime save metadata module.

ParameterTypeDefaultDescription
systemTimebytes—systemTime value consumed by this operation.

View source

METADATA_HEADER

const METADATA_HEADER = "MiniQuake2Slot 1"

Defines the metadata header constant used by the miniquake2 runtime save metadata module.

View source

safeToken

function safeToken(saveMetadataSafeValue)

Return the safe token value.

ParameterTypeDefaultDescription
saveMetadataSafeValuedynamic—saveMetadataSafeValue value consumed by this operation.

View source

save

function save(saveMetadataSavePath, saveMetadataSaveValue)

Save state.

ParameterTypeDefaultDescription
saveMetadataSavePathdynamic—Path associated with save metadata save.
saveMetadataSaveValuedynamic—saveMetadataSaveValue value consumed by this operation.

View source

miniquake2.runtime.save_metadata.SaveSlotMetadata struct

twoDigits

function twoDigits(saveMetadataTwoValue)

Return the two digits value.

ParameterTypeDefaultDescription
saveMetadataTwoValuedynamic—saveMetadataTwoValue value consumed by this operation.

View source

validate

function validate(saveMetadataValidateValue)

Validates validate for the miniquake2 runtime save metadata workflow.

ParameterTypeDefaultDescription
saveMetadataValidateValuedynamic—saveMetadataValidateValue value consumed by this operation.

View source