screpl.bridge_server.bridge module

Manages shared memory region with bridge client

Shared memory region has following structures

struct Block {
    char signature[4];
    int size;
    char block[size]; // dynamic size
}

struct BridgeRegion {
    char signature[160];

    /* Too much milk solution #3, busy-waiting by A */
    int note_to_bridge;
    int note_from_bridge;

    /* bridge protocol */
    int bridge_protocol;
    int region_size;

    /* To SC */
    char command[300];

    /* Heartbeat from SC */
    int inversed_system_millis;

    /* blocks */
    DisplayBlock display_block;
    LogBlock log_block;
    AppOutputBlock app_output_block;

    /* ...other blocks */
}
class screpl.bridge_server.bridge. BridgeRegion [source]

Bases: eudplib.core.eudobj.eudobj.EUDObject

CollectDependency ( emitbuffer ) [source]
Evaluate ( ) [source]

What this object should be evaluated to when used in eudplib program.

Returns

Default) Memory address of this object.

Note

In overriding this method, you can use eudplib.GetObjectAddr() .

GetDataSize ( ) [source]

Memory size of object.

WritePayload ( emitbuffer ) [source]

Write object

get_block_address ( block ) [source]
run ( ) [source]

Maintains the instance