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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user