Ejemplo n.º 1
0
void psCreationManager::HandleParentsData( MsgEntry* me )
{
    psCreationChoiceMsg incomming( me );

    // Simple create a copy of the data in the message.
    incomming.choices.TransferTo( parentData );
}
void pawsGroupWindow::HandleMessage( MsgEntry* me )
{
    psGUIGroupMessage incomming(me);

    switch ( incomming.command )
    {
        case psGUIGroupMessage::GROUP:
        {
            Show();
            HandleGroup( incomming.commandData );
            break;
        }

        case psGUIGroupMessage::MEMBERS:
        {
            HandleMembers( incomming.commandData );
            break;
        }

        case psGUIGroupMessage::LEAVE:
        {
            Hide();
            memberList->Clear();

            if ( incomming.commandData.Length() > 0 )
            {
                psSystemMessage note(0,MSG_INFO, incomming.commandData );
                psengine->GetMsgHandler()->Publish(note.msg);
            }


            break;
        }
    }
}
Ejemplo n.º 3
0
void psCreationManager::HandleLifeEventData( MsgEntry* me )
{
    psLifeEventMsg incomming( me );

    lifeEventData.SetSize( incomming.choices.GetSize() );

    for ( size_t x = 0; x < incomming.choices.GetSize(); x++ )
    {
        lifeEventData[x].id = incomming.choices[x]->id;
        lifeEventData[x].name = incomming.choices[x]->name;
        lifeEventData[x].description = incomming.choices[x]->description;
        lifeEventData[x].common = incomming.choices[x]->common;
        lifeEventData[x].cpCost = incomming.choices[x]->cpCost;

        incomming.choices[x]->adds.TransferTo( lifeEventData[x].adds );
        incomming.choices[x]->removes.TransferTo( lifeEventData[x].removes );
    }
}