-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from o3de/cgalvan/gitflow_220509_multiplayers…
…ample_main Merged `stabilization/2205` to `main`
- Loading branch information
Showing
93 changed files
with
5,000 additions
and
1,036 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: 'Bug Report' | ||
labels: 'needs-triage,kind/bug' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. Try to isolate the issue to help the community to reproduce it easily and increase chances for a fast fix. | ||
|
||
**Steps to reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '...' | ||
3. Select attached asset '...' | ||
4. Scroll down to '...' | ||
5. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Actual behavior** | ||
A clear and concise description of what actually happened. | ||
|
||
**Assets required** | ||
Provide sample assets needed to reproduce the issue. | ||
|
||
**Screenshots/Video** | ||
If applicable, add screenshots and/or a video to help explain your problem. | ||
|
||
**Found in Branch** | ||
Name of or link to the branch where the issue occurs. | ||
|
||
**Desktop/Device (please complete the following information):** | ||
- Device: [e.g. PC, Mac, iPhone, Samsung] | ||
- OS: [e.g. Windows, macOS, iOS, Android] | ||
- Version [e.g. 10, Bug Sur, Oreo] | ||
- CPU [e.g. Intel I9-9900k , Ryzen 5900x, ] | ||
- GPU [AMD 6800 XT, NVidia RTX 3090] | ||
- Memory [e.g. 16GB] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
|
||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: 'Feature Request' | ||
labels: 'needs-triage,kind/feature' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
* Copyright (c) Contributors to the Open 3D Engine Project | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 OR MIT | ||
* | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <AzCore/Math/Transform.h> | ||
#include <AzFramework/Spawnable/SpawnableEntitiesInterface.h> | ||
|
||
namespace MultiplayerSample | ||
{ | ||
using PrefabSpawnCallbackBeforeActivation = AZStd::function<void( | ||
AZStd::shared_ptr<AzFramework::EntitySpawnTicket>, | ||
AzFramework::SpawnableEntityContainerView)>; | ||
|
||
using PrefabSpawnCallback = AZStd::function<void( | ||
AZStd::shared_ptr<AzFramework::EntitySpawnTicket>, | ||
AzFramework::SpawnableConstEntityContainerView)>; | ||
|
||
struct PrefabCallbacks | ||
{ | ||
PrefabSpawnCallbackBeforeActivation m_beforeActivateCallback; | ||
PrefabSpawnCallback m_onActivateCallback; | ||
}; | ||
|
||
class NetworkPrefabSpawnerRequests | ||
{ | ||
public: | ||
AZ_RTTI(NetworkPrefabSpawnerRequests, "{82e5cfb5-6a1a-4bd1-b48d-cd817474d611}"); | ||
virtual ~NetworkPrefabSpawnerRequests() = default; | ||
|
||
/** | ||
* \brief Spawn a prefab given its asset path at a specified transform. | ||
* \param worldTm Where to spawn the instance. | ||
* \param assetPath Path to .spawnable asset to spawn from. | ||
* \param callbacks Optional structure for pre-activate and post-activate callbacks. | ||
*/ | ||
virtual void SpawnPrefab(const AZ::Transform& worldTm, const char* assetPath, PrefabCallbacks callbacks) = 0; | ||
|
||
/** | ||
* \brief Spawn a prefab from spawnable asset at a specified transform. | ||
* \param worldTm Where to spawn the instance. | ||
* \param asset .spawnable asset to spawn from. | ||
* \param callbacks Optional structure for pre-activate and post-activate callbacks. | ||
*/ | ||
virtual void SpawnPrefabAsset(const AZ::Transform& worldTm, const AZ::Data::Asset<AzFramework::Spawnable>& asset, PrefabCallbacks callbacks) = 0; | ||
|
||
/** | ||
* \brief Spawn a prefab instance from spawnable asset assigned in the spawner component. See @NetworkPrefabSpawnerComponent. | ||
* \param worldTm Where to spawn the instance. | ||
* \param callbacks Optional structure for pre-activate and post-activate callbacks. | ||
*/ | ||
virtual void SpawnDefaultPrefab(const AZ::Transform& worldTm, PrefabCallbacks callbacks) = 0; | ||
}; | ||
|
||
class NetworkPrefabSpawnerTraits | ||
: public AZ::ComponentBus | ||
{ | ||
}; | ||
|
||
using NetworkPrefabSpawnerRequestBus = AZ::EBus<NetworkPrefabSpawnerRequests, NetworkPrefabSpawnerTraits>; | ||
using NetworkPrefabSpawnerInterface = AZ::Interface<NetworkPrefabSpawnerRequests>; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
Gem/Code/Source/AutoGen/NetworkRandomImpulseComponent.AutoComponent.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0"?> | ||
|
||
<Component | ||
Name="NetworkRandomImpulseComponent" | ||
Namespace="MultiplayerSample" | ||
OverrideComponent="false" | ||
OverrideController="true" | ||
OverrideInclude="Source/Components/PerfTest/NetworkRandomImpulseComponent.h" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
|
||
<ArchetypeProperty Type="bool" Name="EnableHopping" Init="true" ExposeToEditor="true" Description="Enables occasional hops." /> | ||
<ArchetypeProperty Type="float" Name="HopPeriod" Init="2.f" ExposeToEditor="true" Description="Number of seconds between vertical hopping." /> | ||
<ArchetypeProperty Type="float" Name="HopForce" Init="200.f" ExposeToEditor="true" Description="Force of a hop." /> | ||
|
||
</Component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
Gem/Code/Source/AutoGen/NetworkTestSpawnerComponent.AutoComponent.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0"?> | ||
|
||
<Component | ||
Name="NetworkTestSpawnerComponent" | ||
Namespace="MultiplayerSample" | ||
OverrideComponent="false" | ||
OverrideController="true" | ||
OverrideInclude="Source/Components/PerfTest/NetworkTestSpawnerComponent.h" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
|
||
<ComponentRelation Constraint="Required" HasController="true" Name="NetworkRandomComponent" Namespace="MultiplayerSample" Include="Source/Components/NetworkRandomComponent.h" /> | ||
<ComponentRelation Constraint="Required" HasController="false" Name="NetworkPrefabSpawnerComponent" Namespace="MultiplayerSample" Include="Source/Components/PerfTest/NetworkPrefabSpawnerComponent.h" /> | ||
|
||
<ArchetypeProperty Type="bool" Name="Enabled" Init="true" ExposeToEditor="true" Description="Enables spawning of test prefabs." /> | ||
<ArchetypeProperty Type="bool" Name="RespawnEnabled" Init="false" ExposeToEditor="true" Description="Deletes old instances and spawns new ones when at the maximum live count." /> | ||
<ArchetypeProperty Type="int" Name="MaxLiveCount" Init="100" ExposeToEditor="true" Description="Maximum objects to keep alive, will delete older objects when the count goes above this value." /> | ||
<ArchetypeProperty Type="int" Name="SpawnPerSecond" Init="10" ExposeToEditor="true" Description="How many prefabs to spawn per second." /> | ||
|
||
</Component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.