/// <summary> /// envinit構文のコードを返す /// </summary> /// <returns>コード</returns> public override string GetCode() { string code = ""; code += String.Format("%[ handler:\"{0}\"", this.GetHandlerName()); if (m_vibration.ToString() != "") { code += getParamCode("vibration", m_vibration); } if (m_offset.ToString() != "") { code += getParamCode("offset", m_offset); } if (m_waittime != "") { code += getParamCode("waittime", m_waittime); } if (Time != "") { code += getParamCode("time", Time); } if (Delay != "") { code += getParamCode("delay", Delay); } code += " ]"; return(code); }
/// <summary> /// envinit構文のコードを返す /// </summary> /// <returns>コード</returns> public override string GetCode() { string code = ""; code += String.Format("%[ handler:\"{0}\"", this.GetHandlerName()); if (m_min.ToString() != "") { code += getParamCode("min", m_min); } if (m_max.ToString() != "") { code += getParamCode("max", m_max); } if (m_loop != "") { code += getParamCode("loop", m_loop); } if (Time != "") { code += getParamCode("time", Time); } if (Delay != "") { code += getParamCode("delay", Delay); } code += " ]"; return(code); }
/// <summary> /// envinit構文のコードを返す /// </summary> /// <returns>コード</returns> public override string GetCode() { string code = ""; code += String.Format("%[ handler:\"{0}\"", this.GetHandlerName()); if (m_start.ToString() != "") { code += getParamCode("start", m_start); } if (m_value.ToString() != "") { code += getParamCode("value", m_value); } if (m_accel != "") { code += getParamCode("accel", m_accel); } if (Time != "") { code += getParamCode("time", Time); } if (Delay != "") { code += getParamCode("delay", Delay); } code += " ]"; return(code); }
/// <summary> /// WorldExPotisionオブジェクトを文字列型に変換する /// </summary> /// <param name="context"></param> /// <param name="culture"></param> /// <param name="value"></param> /// <param name="destinationType"></param> /// <returns></returns> public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType == typeof(string) && value is WorldExRelativePotision) { WorldExRelativePotision pos = (WorldExRelativePotision)value; return(pos.ToString()); } return(base.ConvertTo(context, culture, value, destinationType)); }