コード例 #1
0
ファイル: nofScout_Free.cpp プロジェクト: MarcusSt/s25client
void nofScout_Free::Serialize_nofScout_Free(SerializedGameData* sgd) const
{
    Serialize_nofFlagWorker(sgd);

    sgd->PushUnsignedShort(next_x);
    sgd->PushUnsignedShort(next_y);
}
コード例 #2
0
void nofGeologist::Serialize_nofGeologist(SerializedGameData& sgd) const
{
    Serialize_nofFlagWorker(sgd);

    sgd.PushUnsignedShort(signs);

    sgd.PushUnsignedInt(available_nodes.size());
    for(const auto& available_node : available_nodes)
    {
        sgd.PushMapPoint(available_node);
    }

    sgd.PushMapPoint(node_goal);

    for(unsigned i = 0; i < 5; ++i)
        sgd.PushBool(resAlreadyFound[i]);
}
コード例 #3
0
ファイル: nofGeologist.cpp プロジェクト: kumzugloom/s25client
void nofGeologist::Serialize_nofGeologist(SerializedGameData& sgd) const
{
    Serialize_nofFlagWorker(sgd);

    sgd.PushUnsignedShort(signs);

    sgd.PushUnsignedInt(available_nodes.size());
    for(std::vector< MapPoint >::const_iterator it = available_nodes.begin(); it != available_nodes.end(); ++it)
    {
        sgd.PushMapPoint(*it);
    }

    sgd.PushMapPoint(node_goal);

    for(unsigned i = 0; i < 5; ++i)
        sgd.PushBool(resAlreadyFound[i]);

}
コード例 #4
0
ファイル: nofScout_Free.cpp プロジェクト: lweberk/s25client
void nofScout_Free::Serialize_nofScout_Free(SerializedGameData* sgd) const
{
    Serialize_nofFlagWorker(sgd);

    sgd->PushMapPoint(nextPos);
}