Ignore:
Timestamp:
06/20/20 01:09:57 (4 years ago)
Author:
Maciej Komosinski
Message:

Added new receptors (Gp:"gyroscope" on a Part, Tp:Touch-proximity and Tc:Touch-contact) and improved existing ones (T, G)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/modelparts.cpp

    r932 r952  
    2222#include <frams/util/extvalue.h>
    2323#include <frams/param/paramobj.h>
     24#include <frams/neuro/neuroimpl.h>
    2425
    2526#include F0_DEFASSIGN_FILE
     
    756757        {
    757758#define FIELDSTRUCT NeuroExt
    758                 ParamEntry entry = { "class", 2, 0, "neuro class", "s", GETSET(neuroclass) };
     759                ParamEntry entries[] = {
     760                 { "class", 2, 0, "neuro class", "s", GETSET(neuroclass) },
     761                 { "liveNeuro", 2, 1, "live Neuro object", "oNeuro", GETONLY(liveNeuro) }};
    759762#undef FIELDSTRUCT
    760                 add(&entry);
     763                for(auto& e : entries) add(&e);
    761764
    762765#define FIELDSTRUCT Neuro
     
    797800        setClassName(arg->getString()); return PSET_CHANGED;
    798801}
     802
     803void NeuroExt::get_liveNeuro(PARAMGETARGS)
     804{
     805#ifndef SDK_WITHOUT_FRAMS
     806        NeuroNetImpl::getLiveNeuroObject(this,ret);
     807#endif
     808}
Note: See TracChangeset for help on using the changeset viewer.