using UnityEngine; using NeoModLoader.api; using NeoModLoader.services; namespace IdleSpectator; /// /// Phase 1 entry point: prove NeoModLoader loads this mod. /// Camera / WorldLog / MoveCamera work belongs in a later phase. /// public class ModClass : MonoBehaviour, IMod { private ModDeclare _declare; private GameObject _gameObject; public ModDeclare GetDeclaration() { return _declare; } public GameObject GetGameObject() { return _gameObject; } public string GetUrl() { return ""; } public void OnLoad(ModDeclare pModDecl, GameObject pGameObject) { _declare = pModDecl; _gameObject = pGameObject; // OnLoad -> Awake -> OnEnable -> Start -> Update LogService.LogInfo($"[{pModDecl.Name}]: Hello World!"); } }