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

Class Api

unity/Runity/Runity.cs:31–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 }
30
31 public class Api {
32 public Api(string a_gameLibName, Level a_unityLoggerLevel, Level a_writerLoggerLevel) {
33 api_init(a_unityLoggerLevel, a_writerLoggerLevel);
34 api_init_game_lib(a_gameLibName);
35 }
36
37 public void Update() {
38 Time time;
39 time.delta_time = UnityEngine.Time.deltaTime;
40 api_update(time);
41 }
42
43 [DllImport("runity")] public static extern void api_init(Level a_unityLoggerLevel, Level a_writerLoggLevel);
44 [DllImport("runity")] public static extern void api_update(Time a_time);
45
46 // game specific rust dll
47 [DllImport("runity")] public static extern void api_init_game_lib(string a_gameLibName);
48 }
49}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected