public override string GetSummary() { if (variable == null) { return("Error: No variable selected"); } var t = variable.GetType(); string summary = variable.Key + " "; summary += Condition.GetOperatorDescription(compareOperator) + " "; if (t == typeof(BooleanVariable)) { summary += booleanData.GetDescription(); } else if (t == typeof(IntegerVariable)) { summary += integerData.GetDescription(); } else if (t == typeof(FloatVariable)) { summary += floatData.GetDescription(); } else if (t == typeof(StringVariable)) { summary += stringData.GetDescription(); } else if (t == typeof(AnimatorVariable)) { summary += animatorData.GetDescription(); } else if (t == typeof(AudioSourceVariable)) { summary += audioSourceData.GetDescription(); } else if (t == typeof(ColorVariable)) { summary += colorData.GetDescription(); } else if (t == typeof(GameObjectVariable)) { summary += gameObjectData.GetDescription(); } else if (t == typeof(MaterialVariable)) { summary += materialData.GetDescription(); } else if (t == typeof(ObjectVariable)) { summary += objectData.GetDescription(); } else if (t == typeof(Rigidbody2DVariable)) { summary += rigidbody2DData.GetDescription(); } else if (t == typeof(SpriteVariable)) { summary += spriteData.GetDescription(); } else if (t == typeof(TextureVariable)) { summary += textureData.GetDescription(); } else if (t == typeof(TransformVariable)) { summary += transformData.GetDescription(); } else if (t == typeof(Vector2Variable)) { summary += vector2Data.GetDescription(); } else if (t == typeof(Vector3Variable)) { summary += vector3Data.GetDescription(); } return(summary); }
public override string GetSummary() { if (variable == null) { return("Error: Variable not selected"); } string description = variable.Key; switch (setOperator) { default: case SetOperator.Assign: description += " = "; break; case SetOperator.Negate: description += " =! "; break; case SetOperator.Add: description += " += "; break; case SetOperator.Subtract: description += " -= "; break; case SetOperator.Multiply: description += " *= "; break; case SetOperator.Divide: description += " /= "; break; } if (variable.GetType() == typeof(BooleanVariable)) { description += booleanData.GetDescription(); } else if (variable.GetType() == typeof(IntegerVariable)) { description += integerData.GetDescription(); } else if (variable.GetType() == typeof(FloatVariable)) { description += floatData.GetDescription(); } else if (variable.GetType() == typeof(StringVariable)) { description += stringData.GetDescription(); } else if (variable.GetType() == typeof(AnimatorVariable)) { description += animatorData.GetDescription(); } else if (variable.GetType() == typeof(AudioSourceVariable)) { description += audioSourceData.GetDescription(); } else if (variable.GetType() == typeof(ColorVariable)) { description += colorData.GetDescription(); } else if (variable.GetType() == typeof(GameObjectVariable)) { description += gameObjectData.GetDescription(); } else if (variable.GetType() == typeof(MaterialVariable)) { description += materialData.GetDescription(); } else if (variable.GetType() == typeof(ObjectVariable)) { description += objectData.GetDescription(); } else if (variable.GetType() == typeof(Rigidbody2DVariable)) { description += rigidbody2DData.GetDescription(); } else if (variable.GetType() == typeof(SpriteVariable)) { description += spriteData.GetDescription(); } else if (variable.GetType() == typeof(TextureVariable)) { description += textureData.GetDescription(); } else if (variable.GetType() == typeof(TransformVariable)) { description += transformData.GetDescription(); } else if (variable.GetType() == typeof(Vector2Variable)) { description += vector2Data.GetDescription(); } else if (variable.GetType() == typeof(Vector3Variable)) { description += vector3Data.GetDescription(); } return(description); }
public override string GetSummary() { return(logMessage.GetDescription()); }