Table of Contents

Class LunySceneServiceBase

Namespace
Luny.Engine.Services
Assembly
Luny.dll
public abstract class LunySceneServiceBase : LunyEngineServiceBase, ILunySceneService, ILunyEngineService
Inheritance
object
LunySceneServiceBase
Implements
Derived
Inherited Members

Constructors

LunySceneServiceBase()

protected LunySceneServiceBase()

Properties

CurrentScene

public ILunyScene CurrentScene { get; protected set; }

Property Value

ILunyScene

Methods

FindObjectByName(string)

Finds a LunyObject by name in the current scene.

public abstract ILunyObject FindObjectByName(string name)

Parameters

name string

Returns

ILunyObject

GetObjects(IReadOnlyCollection<string>)

Gets objects with matching names in the current scene. Creates LunyObject instances.

public abstract IReadOnlyList<ILunyObject> GetObjects(IReadOnlyCollection<string> objectNames)

Parameters

objectNames IReadOnlyCollection<string>

Returns

IReadOnlyList<ILunyObject>

InvokeOnSceneLoaded(ILunyScene)

protected void InvokeOnSceneLoaded(ILunyScene scene)

Parameters

scene ILunyScene

InvokeOnSceneUnloaded(ILunyScene)

protected void InvokeOnSceneUnloaded(ILunyScene scene)

Parameters

scene ILunyScene

ReloadScene()

public abstract void ReloadScene()

ToString()

public override string ToString()

Returns

string

Events

OnSceneLoaded

public event Action<ILunyScene> OnSceneLoaded

Event Type

Action<ILunyScene>

OnSceneUnloaded

public event Action<ILunyScene> OnSceneUnloaded

Event Type

Action<ILunyScene>