// SetupProperties - Internal setup and write-only set properties on the MaxNode. No reading
// of properties on the MaxNode, as it's still indeterminant.
hsBool plTemplateComponent::SetupProperties(plMaxNode *node, plErrorMsg *pErrMsg)
{
    const char* ageName = IGetAgeName(node);
    if (!ageName)
        return false;

#if 0
    const char *templateName = node->GetName();
    plKey roomKey = plPluginResManager::ResMgr()->NameToLoc(ageName, "District", "BuiltIn", (uint32_t)-1);

    // Set this object and all its children to be in the special template age
    node->SetRoomKey(roomKey);
    for (int i = 0; i < node->NumberOfChildren(); i++)
    {
        plMaxNode* childNode = (plMaxNode*)node->GetChildNode(i);
        childNode->SetRoomKey(roomKey);
    }
#endif

    // We need a coordinate interface so we can move to the clone position
    node->SetForceLocal(true);

    node->GetMaxNodeData()->SetItinerant(true);

    return true;
}
Exemplo n.º 2
0
//
// say why the msg got rejected
//
void plNetMsgScreener::IRejectLogMsg(const plMessage* msg, const char* desc, const plNetGameMember* gm) const
{
    const char* senderName = msg->GetSender() ? msg->GetSender()->GetUoid().GetObjectName().c_str() : "?";
    const char* rcvrName = msg->GetNumReceivers() && msg->GetReceiver(0) ? msg->GetReceiver(0)->GetUoid().GetObjectName().c_str() : "?";

    DebugMsg("Message %s was rejected, reason:%s, age:%s, client:%s, msgSndr:%s, msgRcvr:%s", 
        msg->ClassName(), desc, IGetAgeName(), IGetSenderName(gm),
        senderName, rcvrName);
}
Exemplo n.º 3
0
//
// say why the msg got rejected
//
void plNetMsgScreener::IRejectLogMsg(int16_t classIndex, const char* desc, const plNetGameMember* gm) const
{
    DebugMsg("Message %s was rejected, reason:%s, age:%s, client:%s", 
        plFactory::GetNameOfClass(classIndex), desc, IGetAgeName(), IGetSenderName(gm));
}
Exemplo n.º 4
0
 plAgeFile(Types type, const plFileName &path, jvUniqueId& id)
     : fPath(path), fType(type), fAssetID(id)
 {
     IGetAgeName(path);
 }
Exemplo n.º 5
0
 plAgeFile(Types type, const plFileName &path) : fPath(path), fType(type)
 {
     IGetAgeName(path);
 }