void Awake() { PLUGINDATA = KSPUtil.ApplicationRootPath + "GameData/LaunchNumbering/PluginData/templates.dat"; DEFAULTDATA = KSPUtil.ApplicationRootPath + "GameData/LaunchNumbering/PluginData/default.dat"; _numbering = new Dictionary <string, Dictionary <int, Bloc> >(); GameEvents.OnVesselRollout.Add(RenameVessel); Instance = this; DontDestroyOnLoad(this); }
//internal const string defaultTemplate = "{[name]}{-[launchNumber]}{ (Bloc [blocNumber])}"; public void OnDestroy() { GameEvents.OnVesselRollout.Remove(RenameVessel); Instance = null; }
internal void MakeExample() { Bloc b = LaunchNumbererMono.InitializeNewBloc(1); example = LaunchNumbererMono.Instance.ProcessTemplate(template, "Ship Name", b, 1, 1); }