EnergyBallComponent.AutoComponent.xml 2.6 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0"?>
  2. <Component
  3. Name="EnergyBallComponent"
  4. Namespace="MultiplayerSample"
  5. OverrideComponent="true"
  6. OverrideController="true"
  7. OverrideInclude="Source/Components/Multiplayer/EnergyBallComponent.h"
  8. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  9. <Include File="Source/Effects/GameEffect.h" />
  10. <Include File="Source/Weapons/WeaponTypes.h" />
  11. <ComponentRelation Constraint="Required" HasController="true" Name="NetworkTransformComponent" Namespace="Multiplayer" Include="Multiplayer/Components/NetworkTransformComponent.h" />
  12. <ArchetypeProperty Type="GameEffect" Name="ExplosionEffect" Init="" ExposeToEditor="true" Description="Specifies the effect to play upon exploding" />
  13. <ArchetypeProperty Type="GatherParams" Name="GatherParams" Init="" ExposeToEditor="true" Description="Specifies the types of intersections to test for on the projectile" />
  14. <ArchetypeProperty Type="HitEffect" Name="HitEffect" Init="" ExposeToEditor="true" Description="Specifies the damage effects to apply on hit" />
  15. <ArchetypeProperty Type="AZ::TimeMs" Name="LifetimeMs" Init="AZ::TimeMs{ 0 }" Container="Object" ExposeToEditor="true" Description="Specifies the duration in milliseconds that the projectile should live for" />
  16. <NetworkProperty Type="AZ::Vector3" Name="Velocity" Init="AZ::Vector3::CreateZero()" ReplicateFrom="Authority" ReplicateTo="Client" Container="Object" IsPublic="true" IsRewindable="true" IsPredictable="false" ExposeToScript="true" ExposeToEditor="false" GenerateEventBindings="true" Description="The energy balls current velocity" />
  17. <NetworkProperty Type="bool" Name="BallActive" Init="false" ReplicateFrom="Authority" ReplicateTo="Client" Container="Object" IsPublic="true" IsRewindable="true" IsPredictable="false" ExposeToScript="true" ExposeToEditor="false" GenerateEventBindings="true" Description="Track whether or not the energy ball is currently active" />
  18. <RemoteProcedure Name="RPC_LaunchBall" InvokeFrom="Server" HandleOn="Authority" IsPublic="true" IsReliable="true" GenerateEventBindings="true" Description="Launch an energy ball from a specified position in a specified direction.">
  19. <Param Type="AZ::Vector3" Name="StartingPosition"/>
  20. <Param Type="AZ::Vector3" Name="Direction"/>
  21. <Param Type="Multiplayer::NetEntityId" Name="OwningNetEntityId" />
  22. </RemoteProcedure>
  23. <RemoteProcedure Name="RPC_BallExplosion" InvokeFrom="Authority" HandleOn="Client" IsPublic="true" IsReliable="true" GenerateEventBindings="true" Description="Triggered on clients whenever an energy ball explodes.">
  24. <Param Type="HitEvent" Name="HitEvent"/>
  25. </RemoteProcedure>
  26. </Component>