Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 08e894f

Browse files
author
Jamie Brynes
authored
Add interfaces for scene authoring (#1466)
1 parent d2a5246 commit 08e894f

File tree

5 files changed

+48
-0
lines changed

5 files changed

+48
-0
lines changed

workers/unity/Packages/io.improbable.gdk.core/SceneAuthoring.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System.Collections.Generic;
2+
3+
namespace Improbable.Gdk.Core.SceneAuthoring
4+
{
5+
public interface IConvertGameObjectToSpatialOsEntity
6+
{
7+
List<ConvertedEntity> Convert();
8+
}
9+
10+
public readonly struct ConvertedEntity
11+
{
12+
public readonly EntityId? EntityId;
13+
public readonly EntityTemplate Template;
14+
15+
public ConvertedEntity(EntityId entityId, EntityTemplate template)
16+
{
17+
EntityId = entityId;
18+
Template = template;
19+
}
20+
21+
public ConvertedEntity(EntityTemplate template)
22+
{
23+
EntityId = null;
24+
Template = template;
25+
}
26+
}
27+
}

workers/unity/Packages/io.improbable.gdk.core/SceneAuthoring/IConvertGameObjectToSpatialOsEntity.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Improbable.Gdk.Core.SceneAuthoring
2+
{
3+
public interface ISpatialOsAuthoringComponent
4+
{
5+
void WriteTo(EntityTemplate template);
6+
}
7+
}

workers/unity/Packages/io.improbable.gdk.core/SceneAuthoring/ISpatialOsAuthoringComponent.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)