This repository has been archived by the owner on Jan 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add interfaces for scene authoring (#1466)
- Loading branch information
Jamie Brynes
authored
Aug 28, 2020
1 parent
d2a5246
commit 08e894f
Showing
5 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
workers/unity/Packages/io.improbable.gdk.core/SceneAuthoring.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
...ity/Packages/io.improbable.gdk.core/SceneAuthoring/IConvertGameObjectToSpatialOsEntity.cs
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,27 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Improbable.Gdk.Core.SceneAuthoring | ||
{ | ||
public interface IConvertGameObjectToSpatialOsEntity | ||
{ | ||
List<ConvertedEntity> Convert(); | ||
} | ||
|
||
public readonly struct ConvertedEntity | ||
{ | ||
public readonly EntityId? EntityId; | ||
public readonly EntityTemplate Template; | ||
|
||
public ConvertedEntity(EntityId entityId, EntityTemplate template) | ||
{ | ||
EntityId = entityId; | ||
Template = template; | ||
} | ||
|
||
public ConvertedEntity(EntityTemplate template) | ||
{ | ||
EntityId = null; | ||
Template = template; | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...ackages/io.improbable.gdk.core/SceneAuthoring/IConvertGameObjectToSpatialOsEntity.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
workers/unity/Packages/io.improbable.gdk.core/SceneAuthoring/ISpatialOsAuthoringComponent.cs
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,7 @@ | ||
namespace Improbable.Gdk.Core.SceneAuthoring | ||
{ | ||
public interface ISpatialOsAuthoringComponent | ||
{ | ||
void WriteTo(EntityTemplate template); | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...unity/Packages/io.improbable.gdk.core/SceneAuthoring/ISpatialOsAuthoringComponent.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.