Esempio n. 1
0
 public ColorData(ColorDataList colorData, float activeTime, float r, float g, float b, float time, LerpType lerpType, int level)
 {
     this.colorData  = colorData;
     this.activeTime = activeTime;
     this.r          = r;
     this.g          = g;
     this.b          = b;
     this.time       = time;
     this.lerpType   = lerpType;
     this.level      = level;
 }
Esempio n. 2
0
    /// <summary>
    /// 색 변경
    /// </summary>
    private void AddColorChange(ColorDataList colorData, float activeTime, float r, float g, float b, float time, LerpType lerpType, int level)
    {
        XmlElement Item = (XmlElement)root.AppendChild(doc.CreateElement("ColorChange"));

        Item.SetAttribute("ColorData", colorData.ToString());
        Item.SetAttribute("ActiveTime", activeTime.ToString());
        Item.SetAttribute("R", r.ToString());
        Item.SetAttribute("G", g.ToString());
        Item.SetAttribute("B", b.ToString());
        Item.SetAttribute("Time", time.ToString());
        Item.SetAttribute("LerpType", lerpType.ToString());
        Item.SetAttribute("Level", level.ToString());
    }
 void Parse(Stream s)
 {
     this.colorData = new ColorDataList(handler, s);
 }
 public ColorTimeLineData(int apiVersion, EventHandler handler, ColorDataList colorData)
     : base(apiVersion, handler)
 {
     this.colorData = new ColorDataList(handler, colorData);
 }