Skip to content

Commit 89c6a5c

Browse files
author
gamecode-ci
committed
Release 14
1 parent 659c819 commit 89c6a5c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+147
-37
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
.vs/
2323
build/*
2424
TwoStickShooter/Pure/Library/AnnotationManager
25-
*.rsp
2625
*.pyc
2726

2827
#generated by performance framework

Documentation/content/ecs_in_detail.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ transform.position += deltaTime * playerInput.move * settings.playerMoveSpeed;
1919
group.transform[index] = transform; // Write
2020
```
2121

22-
> Note: ECS will soon use a C#7 based compiler, using [ref returns](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/ref-returns) it makes the extra assignment unnecessary.
23-
2422
IComponentData structs may not contain references to managed objects. Since the all component data lives in simple non-garbage-collected tracked [chunk memory](https://en.wikipedia.org/wiki/Chunking_(computing)).
2523

2624
## EntityArchetype

ReleaseNotes.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# 0.0.16
2+
## New Features
3+
* Added virtual `ValidateSerializedData()` method to `ComponentDataWrapper<T>`and `SharedComponentDataWrapper<T>`, which allows you to sanitize the wrapper's serialized data.
4+
5+
## Upgrade guide
6+
7+
## Changes
8+
* Reverted hotfix in 0.0.14 that made `ComponentDataWrapperBase.OnValidate()` public and `ComponentDataWrapper<T>.m_SerializedData` protected; both are private again.
9+
* CopyTransformToGameObjectSystem and CopyTransformFromGameObjectSystem now execute in edit mode.
10+
11+
## Fixes
12+
* Fixed selection not working in Galactic Conquest sample.
13+
* Fixed errors in HierarchyBrokenExample, HierarchyExample, and RotationExample.
14+
* Fixed regression introduced in 0.0.14 that caused typing values for a RotationComponent in the Inspector to re-normalize with every (xyzw) component entry.
15+
* Fixed all warnings in samples and packages.
16+
117
# 0.0.15
218
## New Features
319

Samples/Assets/Dungeon/Scripts/BoardSystem.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,9 @@ struct BoardGroupData
230230
{
231231
public ComponentDataArray<Board> Boards;
232232
public EntityArray Entities;
233+
#pragma warning disable 649
233234
public readonly int Length;
235+
#pragma warning restore 649
234236
}
235237
[Inject] private BoardGroupData BoardGroup;
236238

Samples/Assets/GalacticConquest/Prefabs/Planets/Sphere.prefab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ GameObject:
5858
- component: {fileID: 23490889912536958}
5959
- component: {fileID: 114926948722948836}
6060
- component: {fileID: 135336872308191772}
61-
m_Layer: 9
61+
m_Layer: 8
6262
m_Name: Sphere
6363
m_TagString: Planet
6464
m_Icon: {fileID: 0}

Samples/Assets/GalacticConquest/Prefabs/Ship.prefab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ MonoBehaviour:
7878
x: 0
7979
y: 0
8080
z: 0
81-
w: 0
81+
w: 1
8282
--- !u!114 &114295265957077778
8383
MonoBehaviour:
8484
m_ObjectHideFlags: 1

Samples/Assets/GalacticConquest/Scripts/Spawners/PlanetSpawner.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
public class PlanetSpawner : MonoBehaviour
1212
{
1313
[SerializeField]
14+
#pragma warning disable 649
1415
GameObject _planetPrefab;
16+
#pragma warning restore 649
1517
[SerializeField]
1618
int _initialCount = 20;
1719
[SerializeField] readonly float radius = 100.0f;

Samples/Assets/GalacticConquest/Scripts/Systems/OccupantIncreaseSystem.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ public class OccupantIncreaseSystem : JobComponentSystem
1818

1919
struct Planets
2020
{
21+
#pragma warning disable 649
2122
public readonly int Length;
23+
2224
public ComponentDataArray<PlanetData> Data;
25+
#pragma warning restore 649
2326
}
2427

2528
struct PlanetsOccupantsJob : IJobParallelFor
@@ -39,7 +42,9 @@ public void Execute(int index)
3942
}
4043

4144
[Inject]
45+
#pragma warning disable 649
4246
Planets planets;
47+
#pragma warning restore 649
4348

4449
protected override JobHandle OnUpdate(JobHandle inputDeps)
4550
{

Samples/Assets/GalacticConquest/Scripts/Systems/RotationSystem.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ namespace Systems
1212
/// </summary>
1313
public class RotationSystem : JobComponentSystem
1414
{
15+
#pragma warning disable 649
1516
struct Planets
1617
{
18+
1719
public readonly int Length;
20+
1821
public ComponentDataArray<RotationData> Data;
1922
public TransformAccessArray Transforms;
2023
}
21-
24+
#pragma warning restore 649
25+
2226
struct RotationJob : IJobParallelForTransform
2327
{
2428
public ComponentDataArray<RotationData> Rotations;
@@ -29,7 +33,9 @@ public void Execute(int index, TransformAccess transform)
2933
}
3034

3135
[Inject]
36+
#pragma warning disable 649
3237
Planets _planets;
38+
#pragma warning restore 649
3339
protected override JobHandle OnUpdate(JobHandle inputDeps)
3440
{
3541
var job = new RotationJob

Samples/Assets/GalacticConquest/Scripts/Systems/ShipArrivalSystem.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,20 @@ public ShipArrivalSystem()
1818
{
1919
_entityManager = World.Active.GetOrCreateManager<EntityManager>();
2020
}
21-
21+
22+
#pragma warning disable 649
2223
struct Ships
2324
{
25+
2426
public readonly int Length;
27+
2528
public ComponentDataArray<ShipData> Data;
2629
public EntityArray Entities;
2730
public ComponentDataArray<ShipArrivedTag> Tag;
2831
}
2932
[Inject]
3033
Ships _ships;
34+
#pragma warning restore 649
3135

3236
protected override void OnUpdate()
3337
{

0 commit comments

Comments
 (0)