/// <summary> /// Register a custom character with the manager, allowing it to show up in game. /// </summary> /// <param name="data">The custom character data to register</param> public static bool RegisterCustomCharacter(CharacterData data) { if (!CustomCharacterData.ContainsKey(data.GetID())) { CustomCharacterData.Add(data.GetID(), data); ProviderManager.SaveManager.GetAllGameData().GetAllCharacterData().Add(data); return(true); } else { Trainworks.Log(LogLevel.Warning, "Attempted to register duplicate character data with name: " + data.name); return(false); } }
public static bool RegisterCustomCharacter(CharacterData data) { CustomCharacterData.Add(data.GetID(), data); return(true); }