MCPcopy Create free account
hub / github.com/TanTanDev/runity / RunityBackend

Class RunityBackend

unity/Runity/Runity.cs:8–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7namespace Runity {
8 public class RunityBackend {
9 private Api m_api;
10 private Logging m_logging;
11 private World m_world;
12
13 public RunityBackend(
14 string a_gameLibName,
15 ScriptablePrefabs a_prefabBindings,
16 Level a_unityLoggerLevel,
17 Level a_writerLoggerLevel
18 ) {
19 m_logging = new Logging();
20 m_world = new World(a_prefabBindings);
21 m_api = new Api(a_gameLibName, a_unityLoggerLevel, a_writerLoggerLevel);
22 }
23
24 public void Update() {
25 // before scripts run, send them latest collision events
26 m_world.DownloadEntityCollisionEvents();
27 m_api.Update();
28 }
29 }
30
31 public class Api {
32 public Api(string a_gameLibName, Level a_unityLoggerLevel, Level a_writerLoggerLevel) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected