| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected