示例#1
0
    public override byte[] toBinary()
    {
        writer = new st.net.NetBase.ByteWriter();
        writer.write_int(oid);
        writer.write_byte(obj_sort);
        writer.write_int(skill);
        writer.write_int(lev);
        writer.write_int(rune);
        writer.write_byte(effect_sort);
        writer.write_float(x);
        writer.write_float(y);
        writer.write_float(z);
        writer.write_float(dir);
        writer.write_int(target_id);
        writer.write_float(target_x);
        writer.write_float(target_y);
        writer.write_float(target_z);
        writer.write_float(shift_x);
        writer.write_float(shift_y);
        writer.write_float(shift_z);
        ushort leneffect_list = (ushort)effect_list.Count;

        writer.write_short(leneffect_list);
        for (int i_effect_list = 0; i_effect_list < leneffect_list; i_effect_list++)
        {
            st.net.NetBase.skill_effect listData = effect_list[i_effect_list];
            listData.toBinary(writer);
        }
        return(writer.data);
    }
示例#2
0
 public override byte[] toBinary()
 {
     writer = new st.net.NetBase.ByteWriter();
     writer.write_float(x);
     writer.write_float(y);
     writer.write_float(z);
     return(writer.data);
 }
 public override byte[] toBinary()
 {
     writer = new st.net.NetBase.ByteWriter();
     writer.write_int(oid);
     writer.write_int(obj_sort);
     writer.write_int(type);
     writer.write_float(time);
     writer.write_float(x);
     writer.write_float(y);
     writer.write_float(z);
     return(writer.data);
 }
示例#4
0
 public override byte[] toBinary()
 {
     writer = new st.net.NetBase.ByteWriter();
     writer.write_int(action);
     writer.write_float(data);
     return(writer.data);
 }
示例#5
0
    public override byte[] toBinary()
    {
        writer = new st.net.NetBase.ByteWriter();
        writer.write_int(oid);
        writer.write_int(obj_sort);
        writer.write_float(dir);
        writer.write_byte(is_path_move);
        ushort lenpoint_list = (ushort)point_list.Count;

        writer.write_short(lenpoint_list);
        for (int i_point_list = 0; i_point_list < lenpoint_list; i_point_list++)
        {
            st.net.NetBase.point3 listData = point_list[i_point_list];
            listData.toBinary(writer);
        }
        return(writer.data);
    }
示例#6
0
 public override byte[] toBinary()
 {
     writer = new st.net.NetBase.ByteWriter();
     writer.write_int(skill);
     writer.write_int(lev);
     writer.write_int(oid);
     writer.write_float(x);
     writer.write_float(y);
     writer.write_float(z);
     writer.write_float(dir);
     writer.write_int(target_id);
     writer.write_float(target_x);
     writer.write_float(target_y);
     writer.write_float(target_z);
     return(writer.data);
 }