Exposing Multiplayer integral types (just wrapped ints) to bevahior context so that Network Properties using these type can be Get/Set from Script Canvas

This commit is contained in:
Gene Walters
2021-05-12 14:19:18 -07:00
parent 0867764e5b
commit 9a4884ff0b
3 changed files with 42 additions and 0 deletions
@@ -78,6 +78,17 @@ namespace Multiplayer
->Version(1);
}
if (AZ::BehaviorContext* behaviorContext = azrtti_cast<AZ::BehaviorContext*>(context))
{
behaviorContext->Class<HostId>("HostId");
behaviorContext->Class<NetEntityId>("NetEntityId");
behaviorContext->Class<NetComponentId>("NetComponentId");
behaviorContext->Class<PropertyIndex>("PropertyIndex");
behaviorContext->Class<RpcIndex> ("RpcIndex");
behaviorContext->Class<ClientInputId> ("ClientInputId");
behaviorContext->Class<HostFrameId> ("HostFrameId");
}
MultiplayerComponent::Reflect(context);
}