public override void OnStart(StartState state) { base.OnStart(state); SpawnManager.Init(part); SpawnManager.SetupSensor(); if (!string.IsNullOrEmpty(ConstructionNode)) { construction_node = part.FindAttachNode(ConstructionNode); foreach (var port in part.FindModulesImplementing <ModuleDockingNode>()) { if (port.nodeTransformName == ConstructionNode || port.referenceAttachNode == ConstructionNode) { construction_port = port; break; } } } if (construction_node == null) { this.Log("ERROR: unable to find construction AttachNode with id: {}", ConstructionNode); this.EnableModule(false); return; } if (kit && ConstructDockingNode >= 0) { construct_docking_node = kit.DockingNodes[ConstructDockingNode]; } }
protected override void early_setup(StartState state) { base.early_setup(state); SpawnManager = new SpawnSpaceManager(); SpawnManager.Load(ModuleConfig); SpawnManager.Init(part); SpawnManager.SetupSensor(); }
protected override void early_setup(StartState state) { base.early_setup(state); SpawnManager = new SpawnSpaceManager(); SpawnManager.Load(ModuleConfig); SpawnManager.Init(part); if (SpawnSpaceSensor) { SpawnManager.SetupSensor(); } build_storage_checklist(); }
public override void OnStart(StartState state) { base.OnStart(state); vessel_spawner.Init(part); SpawnManager.Init(part); SpawnManager.SetupSensor(); animator = part.GetAnimator(AnimatorID); damper = ATMagneticDamper.GetDamper(part, DamperID); if (animator != null) { StartCoroutine(Utils.SlowUpdate(spawn_space_keeper)); } if (Kit && !Kit.Empty) { can_construct_in_situ = CanConstruct(Kit); } }
public override void OnStart(StartState state) { base.OnStart(state); vessel_spawner = new VesselSpawner(part); SpawnManager.Init(part); SpawnManager.SetupSensor(); if (!string.IsNullOrEmpty(AnimatorID)) { animator = part.GetAnimator(AnimatorID); } if (animator != null) { StartCoroutine(Utils.SlowUpdate(spawn_space_keeper)); } if (Kit && !Kit.Empty) { can_construct_in_situ = CanConstruct(Kit); } }