Loading...   


void handle_rc_get_initial_entity_positions(const std::string &method, const std::string &connection_id, const std::string &request_id, const std::vector<std::string> &params) {
	std::string error;
	std::map<std::string, std::string> res;

	std::list<NPC*> npc_list;
	entity_list.GetNPCList(npc_list);
	for (std::list<NPC*>::iterator itr = npc_list.begin(); itr != npc_list.end(); ++itr) {
		NPC* npc = *itr;
		res[npc->GetID()] = MakeJSON(
			"zone_id:" + std::to_string(zone->GetZoneID()) +
			",inst_id:" + itoa(zone->GetInstanceID()) + 
			",ent_id:" + itoa(npc->GetID()) +
			",x:" + itoa(npc->GetX()) +
			",y:" + itoa(npc->GetX()) +
			",z:" + itoa(npc->GetX()) +
			",h:" + itoa(npc->GetHeading())
		); 
		// res["zone_id"] = itoa(zone->GetZoneID());
		// res["instance_id"] = itoa(zone->GetInstanceID());
		// res["ent_id"] = itoa(npc->GetID());
		// res["name"] = npc->GetName();
		// res["x"] = itoa(npc->GetX());
		// res["y"] = itoa(npc->GetY());
		// res["z"] = itoa(npc->GetZ());
		// res["h"] = itoa(npc->GetHeading());
		
	}
	RemoteCallResponse(connection_id, request_id, res, error);
}

1>------ Build started: Project: ZERO_CHECK, Configuration: RelWithDebInfo Win32 ------
2>------ Skipped Build: Project: dist, Configuration: RelWithDebInfo Win32 ------
2>Project not selected to build for this solution configuration 
3>------ Build started: Project: zone, Configuration: RelWithDebInfo Win32 ------
3>  remote_call.cpp
3>..\..\zone\remote_call.cpp(91): error C2679: binary '[' : no operator found which takes a right-hand operand of type 'const uint16' (or there is no acceptable conversion)
3>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\map(224): could be 'std::basic_string<char,std::char_traits<char>,std::allocator<char>> &std::map<std::string,std::string,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>::operator [](const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &)'
3>          with
3>          [
3>              _Kty=std::string
3>  ,            _Ty=std::string
3>          ]
3>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\map(172): or       'std::basic_string<char,std::char_traits<char>,std::allocator<char>> &std::map<std::string,std::string,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>::operator [](std::basic_string<char,std::char_traits<char>,std::allocator<char>> &&)'
3>          with
3>          [
3>              _Kty=std::string
3>  ,            _Ty=std::string
3>          ]
3>          while trying to match the argument list '(std::map<std::string,std::string,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>, const uint16)'
3>          with
3>          [
3>              _Kty=std::string
3>  ,            _Ty=std::string
3>          ]
4>------ Build started: Project: ALL_BUILD, Configuration: RelWithDebInfo Win32 ------
4>  Build all projects
5>------ Skipped Build: Project: INSTALL, Configuration: RelWithDebInfo Win32 ------
5>Project not selected to build for this solution configuration 
6>------ Skipped Build: Project: PACKAGE, Configuration: RelWithDebInfo Win32 ------
6>Project not selected to build for this solution configuration 
========== Build: 2 succeeded, 1 failed, 13 up-to-date, 3 skipped ==========

Raw Paste Data