public Dictionary <string, object> GetDict() { Dictionary <string, object> info = new Dictionary <string, object>(); info[BaseNetworkBehavior.POSITION_X] = BaseNetworkBehavior.ConvertToShort(m_startPosition.x); info[BaseNetworkBehavior.POSITION_Y] = BaseNetworkBehavior.ConvertToShort(m_startPosition.y); info[BaseNetworkBehavior.POSITION_Z] = BaseNetworkBehavior.ConvertToShort(m_startPosition.z); if (m_startDirection.x != 0) { info[BaseNetworkBehavior.DIRECTION_X] = BaseNetworkBehavior.ConvertToShort(m_startDirection.x); } if (m_startDirection.y != 0) { info[BaseNetworkBehavior.DIRECTION_Y] = BaseNetworkBehavior.ConvertToShort(m_startDirection.y); } if (m_startVelocity.x != 0) { info[BaseNetworkBehavior.SPEED_X] = BaseNetworkBehavior.ConvertToShort(m_startVelocity.x); } if (m_startVelocity.y != 0) { info[BaseNetworkBehavior.SPEED_Y] = BaseNetworkBehavior.ConvertToShort(m_startVelocity.y); } info[BaseNetworkBehavior.SHOOTER_ID] = m_shooter; info[BaseNetworkBehavior.ID] = m_bombID; return(info); }
public Dictionary <string, object> GetDict() { Dictionary <string, object> info = new Dictionary <string, object>(); info[BaseNetworkBehavior.POSITION_X] = BaseNetworkBehavior.ConvertToShort(m_startPosition.x); info[BaseNetworkBehavior.POSITION_Y] = BaseNetworkBehavior.ConvertToShort(m_startPosition.y); info[BaseNetworkBehavior.POSITION_Z] = BaseNetworkBehavior.ConvertToShort(m_startPosition.z); if (m_startDirection.x != 0) { info[BaseNetworkBehavior.DIRECTION_X] = BaseNetworkBehavior.ConvertToShort(m_startDirection.x); } if (m_startDirection.y != 0) { info[BaseNetworkBehavior.DIRECTION_Y] = BaseNetworkBehavior.ConvertToShort(m_startDirection.y); } if (m_startVelocity.x != 0) { info[BaseNetworkBehavior.SPEED_X] = BaseNetworkBehavior.ConvertToShort(m_startVelocity.x); } if (m_startVelocity.y != 0) { info[BaseNetworkBehavior.SPEED_Y] = BaseNetworkBehavior.ConvertToShort(m_startVelocity.y); } if (m_startVelocity.z != 0) { info[BaseNetworkBehavior.SPEED_Z] = BaseNetworkBehavior.ConvertToShort(m_startVelocity.z); } info[BaseNetworkBehavior.SHOOTER_ID] = m_shooter; info[BaseNetworkBehavior.HIT_ID] = m_hitId; info[BaseNetworkBehavior.ID] = (int)m_bulletID; info[BaseNetworkBehavior.LAST_PING] = BaseNetworkBehavior.ConvertToShort(GCore.Wrapper.Client.RelayService.LastPing * 0.0001f); return(info); }