added canvas to protobuf node messages, added node canvas id to grpc server handling, updating pygui to draw canvases based on joined session and add nodes to respective canvas
This commit is contained in:
parent
9621df6bc4
commit
b01249bb4e
5 changed files with 67 additions and 25 deletions
|
@ -649,6 +649,7 @@ class Node:
|
|||
geo: Geo = None
|
||||
dir: str = None
|
||||
channel: str = None
|
||||
canvas: int = None
|
||||
|
||||
# configurations
|
||||
emane_model_configs: Dict[
|
||||
|
@ -683,6 +684,7 @@ class Node:
|
|||
geo=Geo.from_proto(proto.geo),
|
||||
dir=proto.dir,
|
||||
channel=proto.channel,
|
||||
canvas=proto.canvas,
|
||||
)
|
||||
|
||||
def to_proto(self) -> core_pb2.Node:
|
||||
|
@ -700,6 +702,7 @@ class Node:
|
|||
server=self.server,
|
||||
dir=self.dir,
|
||||
channel=self.channel,
|
||||
canvas=self.canvas,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue