Quellcode durchsuchen

Merge pull request #17 from aws-lumberyard-dev/SPEC7214_SeparateNetworkPropertiesEventBindingsAndScriptBindings

SPEC-7214 New Network Property Attribute: "ExposeToScript"
Gene Walters vor 4 Jahren
Ursprung
Commit
499e67b64e

+ 1 - 1
Gem/Code/Source/AutoGen/NetworkAnimationComponent.AutoComponent.xml

@@ -15,7 +15,7 @@
     <ComponentRelation Constraint="Required" HasController="true" Name="SimplePlayerCameraComponent" Namespace="MultiplayerSample" Include="Source/Components/SimplePlayerCameraComponent.h" />
     <ComponentRelation Constraint="Required" HasController="true" Name="SimplePlayerCameraComponent" Namespace="MultiplayerSample" Include="Source/Components/SimplePlayerCameraComponent.h" />
     <ComponentRelation Constraint="Weak" HasController="true" Name="WasdPlayerMovementComponent" Namespace="MultiplayerSample" Include="Source/Components/WasdPlayerMovementComponent.h" />
     <ComponentRelation Constraint="Weak" HasController="true" Name="WasdPlayerMovementComponent" Namespace="MultiplayerSample" Include="Source/Components/WasdPlayerMovementComponent.h" />
 
 
-    <NetworkProperty Type="CharacterAnimStateBitset" Name="ActiveAnimStates" Init="false" ReplicateFrom="Authority" ReplicateTo="Client" IsRewindable="true" IsPredictable="true" IsPublic="true" Container="Object" ExposeToEditor="false" GenerateEventBindings="false" Description="Bitset of active animation states" />
+    <NetworkProperty Type="CharacterAnimStateBitset" Name="ActiveAnimStates" Init="false" ReplicateFrom="Authority" ReplicateTo="Client" IsRewindable="true" IsPredictable="true" IsPublic="true" Container="Object" ExposeToEditor="false" ExposeToScript="false" GenerateEventBindings="false" Description="Bitset of active animation states" />
 
 
     <ArchetypeProperty Type="AZStd::string" Name="VelocityParamName"  Init=""     ExposeToEditor="true" Description="Anim graph velocity parameter"/>
     <ArchetypeProperty Type="AZStd::string" Name="VelocityParamName"  Init=""     ExposeToEditor="true" Description="Anim graph velocity parameter"/>
     <ArchetypeProperty Type="AZStd::string" Name="AimTargetParamName" Init=""     ExposeToEditor="true" Description="Anim graph aim target parameter"/>
     <ArchetypeProperty Type="AZStd::string" Name="AimTargetParamName" Init=""     ExposeToEditor="true" Description="Anim graph aim target parameter"/>

+ 1 - 1
Gem/Code/Source/AutoGen/SimplePlayerCameraComponent.AutoComponent.xml

@@ -12,5 +12,5 @@
 
 
     <Include File="Source/MultiplayerSampleTypes.h"/>
     <Include File="Source/MultiplayerSampleTypes.h"/>
 
 
-    <NetworkProperty Type="AZ::Vector3" Name="AimAngles" Init="AZ::Vector3::CreateZero()" ReplicateFrom="Authority" ReplicateTo="Client" IsRewindable="true" IsPredictable="true" IsPublic="true" Container="Object" ExposeToEditor="false" GenerateEventBindings="true" Description="Current aim direction of this player"/>
+    <NetworkProperty Type="AZ::Vector3" Name="AimAngles" Init="AZ::Vector3::CreateZero()" ReplicateFrom="Authority" ReplicateTo="Client" IsRewindable="true" IsPredictable="true" IsPublic="true" Container="Object" ExposeToEditor="false" ExposeToScript="false" GenerateEventBindings="true" Description="Current aim direction of this player"/>
 </Component>
 </Component>

+ 1 - 1
Gem/Code/Source/AutoGen/WasdPlayerMovementComponent.AutoComponent.xml

@@ -15,7 +15,7 @@
 
 
     <Include File="Source/MultiplayerSampleTypes.h"/>
     <Include File="Source/MultiplayerSampleTypes.h"/>
 
 
-    <NetworkProperty Type="AZ::Vector3" Name="Velocity" Init="AZ::Vector3::CreateZero()" ReplicateFrom="Authority" ReplicateTo="Client" IsRewindable="true" IsPredictable="true" IsPublic="true" Container="Object" ExposeToEditor="false" GenerateEventBindings="true" Description="Current velocity of this player"/>
+    <NetworkProperty Type="AZ::Vector3" Name="Velocity" Init="AZ::Vector3::CreateZero()" ReplicateFrom="Authority" ReplicateTo="Client" IsRewindable="true" IsPredictable="true" IsPublic="true" Container="Object" ExposeToEditor="false" ExposeToScript="true" GenerateEventBindings="true" Description="Current velocity of this player"/>
 
 
     <NetworkInput Type="StickAxis" Name="ForwardAxis" Init="0.0f" />
     <NetworkInput Type="StickAxis" Name="ForwardAxis" Init="0.0f" />
     <NetworkInput Type="StickAxis" Name="StrafeAxis"  Init="0.0f" />
     <NetworkInput Type="StickAxis" Name="StrafeAxis"  Init="0.0f" />