public AbilityBallisticCurveInfo(st.net.NetBase.scene_arrow _data) { data = _data; configID = (int)_data.type; instanceID = (int)_data.aid; isLock = false; startPos = new Vector3(data.x, data.y, data.z); direction = Quaternion.Euler(0.0f, data.dir, 0.0f) * new Vector3(0, 0, 1); }
public override byte[] toBinary() { writer = new st.net.NetBase.ByteWriter(); ushort lenlist = (ushort)list.Count; writer.write_short(lenlist); for (int i_list = 0; i_list < lenlist; i_list++) { st.net.NetBase.scene_arrow listData = list[i_list]; listData.toBinary(writer); } return(writer.data); }
public override void fromBinary(byte[] binary) { reader = new st.net.NetBase.ByteReader(binary); ushort lenlist = reader.Read_ushort(); list = new List <st.net.NetBase.scene_arrow>(); for (int i_list = 0; i_list < lenlist; i_list++) { st.net.NetBase.scene_arrow listData = new st.net.NetBase.scene_arrow(); listData.fromBinary(reader); list.Add(listData); } }