schola.core.unreal_connections.UnrealConnection
- class schola.core.unreal_connections.UnrealConnection(url, port)[source]
-
Bases:
object
Abstract Base Class for a gRPC based connection to Unreal Engine.
Methods
__init__
(url, port)close
()Close the Unreal Connection.
connect_stubs
(*stubs)Connects the gRPC stubs to the Unreal Engine channel
get_open_port
(url)Get an open port on the given URL
start
()Open the Connection to Unreal Engine.
Attributes
Returns the address of the connection
Returns whether the connection is active or not
- property address: str
-
Returns the address of the connection
- Returns:
-
The address of the connection
- Return type:
- close()[source]
-
Close the Unreal Connection. Method must be safe to call multiple times.
- Return type:
-
None
- connect_stubs(*stubs)[source]
-
Connects the gRPC stubs to the Unreal Engine channel
- Parameters:
-
*stubs (List[“grpc.Stub”]) – The gRPC stubs to connect to the Unreal Engine channel
- Return type:
-
List[grpc.Stub]
- get_open_port(url)[source]
-
Get an open port on the given URL
- property is_active: bool
-
Returns whether the connection is active or not
- Returns:
-
Whether the connection is active or not
- Return type:
- start()[source]
-
Open the Connection to Unreal Engine.
- Return type:
-
None