123456789101112131415161718192021222324252627282930313233 |
- <?xml version="1.0"?>
- <Component
- Name="EnergyBallComponent"
- Namespace="MultiplayerSample"
- OverrideComponent="true"
- OverrideController="true"
- OverrideInclude="Source/Components/Multiplayer/EnergyBallComponent.h"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <Include File="Source/Effects/GameEffect.h" />
- <Include File="Source/Weapons/WeaponTypes.h" />
- <ComponentRelation Constraint="Required" HasController="true" Name="NetworkTransformComponent" Namespace="Multiplayer" Include="Multiplayer/Components/NetworkTransformComponent.h" />
- <ArchetypeProperty Type="GameEffect" Name="ExplosionEffect" Init="" ExposeToEditor="true" Description="Specifies the effect to play upon exploding" />
- <ArchetypeProperty Type="GatherParams" Name="GatherParams" Init="" ExposeToEditor="true" Description="Specifies the types of intersections to test for on the projectile" />
- <ArchetypeProperty Type="HitEffect" Name="HitEffect" Init="" ExposeToEditor="true" Description="Specifies the damage effects to apply on hit" />
- <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" />
- <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" />
- <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" />
- <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.">
- <Param Type="AZ::Vector3" Name="StartingPosition"/>
- <Param Type="AZ::Vector3" Name="Direction"/>
- <Param Type="Multiplayer::NetEntityId" Name="OwningNetEntityId" />
- </RemoteProcedure>
- <RemoteProcedure Name="RPC_BallExplosion" InvokeFrom="Authority" HandleOn="Client" IsPublic="true" IsReliable="true" GenerateEventBindings="true" Description="Triggered on clients whenever an energy ball explodes.">
- <Param Type="HitEvent" Name="HitEvent"/>
- </RemoteProcedure>
- </Component>
|