/** * <summary>Prints the Action's comment, if applicable, to the Console.</summary> * <param name = "_gameObject">The associated GameObject that contains the ActionList of which this Action is a part of</param> */ public void PrintComment(GameObject _gameObject) { if (showComment && comment != "") { string log = comment + "\n" + "(From " + _gameObject.name + " , " + category.ToString() + ": " + title + ")"; ACDebug.Log(log, _gameObject); } }
/** * <summary>Prints the Action's comment, if applicable, to the Console.</summary> * <param name = "actionList">The associated ActionList of which this Action is a part of</param> */ public void PrintComment(ActionList actionList) { if (showComment && comment != "") { string log = AdvGame.ConvertTokens(comment, 0, null, actionList.parameters); log += "\n" + "(From " + actionList.gameObject.name + " , " + category.ToString() + ": " + title + ")"; ACDebug.Log(log, actionList); } }
public void BreakPoint(int i, ActionList list) { if (isBreakPoint) { ACDebug.Log("Break-point with (" + i.ToString() + ") '" + category.ToString() + ": " + title + "' in " + list.gameObject.name); EditorApplication.isPaused = true; } }
/** * <summary>Gets the full name (category + title) of the Action. Actions in the Custom category are prefixed with "ZZ" so that they appear at the bottom in an alphabetical order.</summary> * <returns>The full name (category + title) of the Action</param> */ public string GetFullTitle(bool forSorting = false) { if (forSorting) { if (category == ActionCategory.Custom) { return("ZZ" + title); } } return(category.ToString() + ": " + title); }
//public int NewNo { get; set; } // Display Info of the RFEM Objects on Panels // Parameters are separated by ";". The component split text can be used to break the string down into a list. public override string ToString() { return(string.Format($"RFEM-LoadCase;No:{No};" + $"Description:{((Description == "") ? "-" : Description)};ActionCategory:{ActionCategory.ToString()};" + $"SelfWeightFactor:{SelfWeightFactor.ToString()};ToSolve:{ToSolve.ToString()};" + $"IsValid:{IsValid};ID:{((ID == "") ? "-" : ID)};Tag:{((Tag == "") ? "-" : Tag)};" + $"ToModify:{ToModify};ToDelete:{ToDelete};Comment:{((Comment == "") ? "-" : Comment)};")); }
public ActionCategoryAttribute(ActionCategory category) { this.category = category.ToString(); }