public override string ToString()
        {
            switch (type)
            {
            case DefineableConditionType.PROPERTY_BOOL:
                return(data);

            case DefineableConditionType.EDITOR_VERSION:
                return("EDITOR_VERSION" + data);

            case DefineableConditionType.VRC_SDK_VERSION:
                return("VRC_SDK_VERSION" + data);

            case DefineableConditionType.AND:
                if (condition1 != null && condition2 != null)
                {
                    return(condition1.ToString() + "&&" + condition2.ToString());
                }
                break;

            case DefineableConditionType.OR:
                if (condition1 != null && condition2 != null)
                {
                    return(condition1.ToString() + "||" + condition2.ToString());
                }
                break;
            }
            return("");
        }
Exemple #2
0
        public override string ToString()
        {
            switch (type)
            {
            case DefineableConditionType.PROPERTY_BOOL:
                return(data);

            case DefineableConditionType.EDITOR_VERSION:
                return("EDITOR_VERSION" + data);

            case DefineableConditionType.VRC_SDK_VERSION:
                return("VRC_SDK_VERSION" + data);

            case DefineableConditionType.TEXTURE_SET:
                return("TEXTURE_SET" + data);

            case DefineableConditionType.DROPDOWN:
                return("DROPDOWN" + data);

            case DefineableConditionType.PROPERTY_IS_ANIMATED:
                return($"isAnimated({data})");

            case DefineableConditionType.PROPERTY_IS_NOT_ANIMATED:
                return($"isNotAnimated({data})");

            case DefineableConditionType.AND:
                if (condition1 != null && condition2 != null)
                {
                    return("(" + condition1.ToString() + "&&" + condition2.ToString() + ")");
                }
                break;

            case DefineableConditionType.OR:
                if (condition1 != null && condition2 != null)
                {
                    return("(" + condition1.ToString() + "||" + condition2.ToString() + ")");
                }
                break;
            }
            return("");
        }