コード例 #1
0
PyResult FactoryService::Handle_GetBlueprintAttributes(PyCallArgs &call) {
    Call_SingleIntegerArg arg;
    if(!arg.Decode(&call.tuple)) {
        _log(SERVICE__ERROR, "Failed to decode args.");
        return NULL;
    }

    BlueprintRef b = ItemFactory::GetBlueprint(arg.arg);
    if( !b )
        return NULL;

    return b->GetBlueprintAttributes();
}