/// <summary> /// Inserts to the front of thoughts List /// </summary> public void AddPlayerThought( Model_Thought thought, Model_PlayerThoughts thoughts ) { thoughts.uglyThoughts.Insert(0, thought); }
public void RemovePlayerThought( Model_Thought thought, Model_PlayerThoughts thoughts ) { thoughts.uglyThoughts.Remove(thought); }
/// <summary> /// Handles copying thoughts into slots /// </summary> public void UpdatePlayerThoughts( Model_Thought thought, Model_PlayerThoughts thoughts, Script_PlayerThoughtsInventoryButton[] thoughtSlots ) { foreach (Script_PlayerThoughtsInventoryButton ts in thoughtSlots) { ts.text.text = string.Empty; } // works ONLY if thoughts is exactly equal to maxHP for (int i = 0; i < thoughts.uglyThoughts.Count; i++) { string newThoughtText = thoughts.uglyThoughts[i].thought; thoughtSlots[i].text.text = Script_Utils.FormatString(newThoughtText); } }
public void AddThought(Model_PlayerThoughts thoughts, Model_Thought thought) { // TODO: don't hardcode this thoughts.uglyThoughts.Add(thought); }
public int GetThoughtCount(Model_PlayerThoughts thoughts) { return(thoughts.uglyThoughts.Count); }