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

Commit

Permalink
Add interfaces for scene authoring (#1466)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Brynes authored Aug 28, 2020
1 parent d2a5246 commit 08e894f
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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;
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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);
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 08e894f

Please sign in to comment.