public static IdeaType CheckIdeaType(string text) { IdeaType temp = IdeaType.None; switch (text) { case INST_Idea_None: temp = IdeaType.None; break; case INST_Idea_Goal: temp = IdeaType.Goal; break; case INST_Idea_Mechanic: temp = IdeaType.Mechanic; break; case INST_Idea_Theme: temp = IdeaType.Theme; break; case INST_Idea_Platform: temp = IdeaType.Platform; break; case INST_Idea_User: temp = IdeaType.User; break; } return(temp); }
public Idea( string subject, Verb verb, string indirectObject, string directObject, Verb auxilleryVerb, IdeaType ideaType, bool negitive) { this.subject = subject; this.verb = verb; this.indirectObject = indirectObject; this.directObject = directObject; this.auxilleryVerb = auxilleryVerb; this.ideaType = ideaType; this.negitive = negitive; }
private Idea_Template CreateTemplate(string line) { string id = string.Empty; IdeaType ideaType = IdeaType.None; string ideaName = string.Empty; string description = string.Empty; Sprite icon = null; bool collected = false; string message = string.Empty; string[] entries = line.Split(','); for (int i = 0; i < entries.Length; i++) { string entry = entries[i]; switch (entry) { case INST_SET_ID: id = entries[++i]; break; case INST_SET_IdeaType: ideaType = ConvertType.CheckIdeaType(entries[++i]); break; case INST_SET_IdeaName: ideaName = entries[++i]; break; case INST_SET_IdeaDescription: description = entries[++i]; break; case INST_SET_IconPath: icon = Resources.Load <Sprite>(entries[++i]); break; case INST_SET_DefaultCollected: collected = bool.Parse(entries[++i]); break; case INST_SET_Message: message = entries[++i]; break; } } return(new Idea_Template(id, ideaType, ideaName, description, icon, collected, message)); }
public Idea(Idea idea) { this.verb = idea.verb; this.DOPisIt = idea.DOPisIt; this.subject = idea.subject; this.IOPwasSe = idea.IOPwasSe; this.ideaType = idea.ideaType; this.negitive = idea.negitive; this.verbTypes = idea.verbTypes; this.DOPgender = idea.DOPgender; this.foundSubject = idea.foundSubject; this.directObject = idea.directObject; this.auxilleryVerb = idea.auxilleryVerb; this.indirectObject = idea.indirectObject; this.eitherIOPorDOP = idea.eitherIOPorDOP; this.masculineSubject = idea.masculineSubject; this.possiblyInfinitive = idea.possiblyInfinitive; this.possiblyTuCommandOrThirdPeron = idea.possiblyTuCommandOrThirdPeron; }
public static string ConvertIdeaTypeToString(IdeaType ideaType) { string unit = string.Empty; switch (ideaType) { case IdeaType.Goal: unit = INST_Goal; break; case IdeaType.Mechanic: unit = INST_Mechanic; break; case IdeaType.Theme: unit = INST_Theme; break; default: unit = INST_Default; break; } return(unit); }
private void SetAmountIdeas(int hasCollected, int totalIdeas, IdeaType ideaType) { countTMP.text = string.Format("{0} จาก {1}", hasCollected, totalIdeas); }