Ejemplo n.º 1
0
        public override void Write(JsonData jsNode)
        {
            base.Write(jsNode);

            jsNode["fx_name"]     = EffectUtil.GetFxPath(fx_name);
            jsNode["target_name"] = target_name;
            jsNode["speed"]       = speed;
            jsNode["acce"]        = acce;
            jsNode["len"]         = len;

            jsNode["height"]   = height;
            jsNode["z_offset"] = z_offset;

            if (offset_pos.x != 0.0f)
            {
                jsNode["x"] = offset_pos.x;
            }

            if (offset_pos.y != 0.0f)
            {
                jsNode["y"] = offset_pos.y;
            }

            if (offset_pos.z != 0.0f)
            {
                jsNode["z"] = offset_pos.z;
            }
            jsNode["attach_name"]    = attach_name;
            jsNode["target_hitnode"] = target_hitnode;
        }
Ejemplo n.º 2
0
        public override void Write(JsonData jsNode)
        {
            base.Write(jsNode);

            jsNode["attach_name"] = attach_name;
            jsNode["fx_name"]     = EffectUtil.GetFxPath(fx_name);

            if (only_main_role == true)
            {
                jsNode["only_main_role"] = only_main_role;
            }

            if (offset_pos.x != 0.0f)
            {
                jsNode["x"] = offset_pos.x;
            }

            if (offset_pos.y != 0.0f)
            {
                jsNode["y"] = offset_pos.y;
            }

            if (offset_pos.z != 0.0f)
            {
                jsNode["z"] = offset_pos.z;
            }

            if (scale != 1.0f)
            {
                jsNode["scale"] = scale;
            }
        }
Ejemplo n.º 3
0
        public override void Write(JsonData jsNode)
        {
            base.Write(jsNode);

            jsNode["fx_name"] = EffectUtil.GetFxPath(fx_name);

            if (position.x != 0.0f)
            {
                jsNode["px"] = position.x;
            }

            if (position.y != 0.0f)
            {
                jsNode["py"] = position.y;
            }

            if (position.z != 0.0f)
            {
                jsNode["pz"] = position.z;
            }

            if (rotation.x != 0.0f)
            {
                jsNode["rx"] = rotation.x;
            }

            if (rotation.y != 0.0f)
            {
                jsNode["ry"] = rotation.y;
            }

            if (rotation.z != 0.0f)
            {
                jsNode["rz"] = rotation.z;
            }

            if (by_target)
            {
                jsNode["by_target"] = by_target;
            }

            if (scale != 1.0f)
            {
                jsNode["scale"] = scale;
            }
        }