Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpObstruction.cpp
Show All 40 Lines | case FOUNDATION_CHECK_FAIL_TERRAIN_CLASS: | ||||
return "fail_terrain_class"; | return "fail_terrain_class"; | ||||
default: | default: | ||||
debug_warn(L"Unexpected result from CheckFoundation"); | debug_warn(L"Unexpected result from CheckFoundation"); | ||||
return ""; | return ""; | ||||
} | } | ||||
} | } | ||||
BEGIN_INTERFACE_WRAPPER(Obstruction) | BEGIN_INTERFACE_WRAPPER(Obstruction) | ||||
DEFINE_INTERFACE_METHOD_CONST_0("GetUnitRadius", entity_pos_t, ICmpObstruction, GetUnitRadius) | DEFINE_INTERFACE_METHOD("GetUnitRadius", ICmpObstruction, GetUnitRadius) | ||||
DEFINE_INTERFACE_METHOD_CONST_0("CheckShorePlacement", bool, ICmpObstruction, CheckShorePlacement) | DEFINE_INTERFACE_METHOD("CheckShorePlacement", ICmpObstruction, CheckShorePlacement) | ||||
DEFINE_INTERFACE_METHOD_CONST_2("CheckFoundation", std::string, ICmpObstruction, CheckFoundation_wrapper, std::string, bool) | DEFINE_INTERFACE_METHOD("CheckFoundation", ICmpObstruction, CheckFoundation_wrapper) | ||||
DEFINE_INTERFACE_METHOD_CONST_0("CheckDuplicateFoundation", bool, ICmpObstruction, CheckDuplicateFoundation) | DEFINE_INTERFACE_METHOD("CheckDuplicateFoundation", ICmpObstruction, CheckDuplicateFoundation) | ||||
DEFINE_INTERFACE_METHOD_CONST_0("GetEntitiesBlockingMovement", std::vector<entity_id_t>, ICmpObstruction, GetEntitiesBlockingMovement) | DEFINE_INTERFACE_METHOD("GetEntitiesBlockingMovement", ICmpObstruction, GetEntitiesBlockingMovement) | ||||
DEFINE_INTERFACE_METHOD_CONST_0("GetEntitiesBlockingConstruction", std::vector<entity_id_t>, ICmpObstruction, GetEntitiesBlockingConstruction) | DEFINE_INTERFACE_METHOD("GetEntitiesBlockingConstruction", ICmpObstruction, GetEntitiesBlockingConstruction) | ||||
DEFINE_INTERFACE_METHOD_CONST_0("GetEntitiesDeletedUponConstruction", std::vector<entity_id_t>, ICmpObstruction, GetEntitiesDeletedUponConstruction) | DEFINE_INTERFACE_METHOD("GetEntitiesDeletedUponConstruction", ICmpObstruction, GetEntitiesDeletedUponConstruction) | ||||
DEFINE_INTERFACE_METHOD_1("SetActive", void, ICmpObstruction, SetActive, bool) | DEFINE_INTERFACE_METHOD("SetActive", ICmpObstruction, SetActive) | ||||
DEFINE_INTERFACE_METHOD_3("SetDisableBlockMovementPathfinding", void, ICmpObstruction, SetDisableBlockMovementPathfinding, bool, bool, int32_t) | DEFINE_INTERFACE_METHOD("SetDisableBlockMovementPathfinding", ICmpObstruction, SetDisableBlockMovementPathfinding) | ||||
DEFINE_INTERFACE_METHOD_CONST_0("GetBlockMovementFlag", bool, ICmpObstruction, GetBlockMovementFlag) | DEFINE_INTERFACE_METHOD("GetBlockMovementFlag", ICmpObstruction, GetBlockMovementFlag) | ||||
DEFINE_INTERFACE_METHOD_1("SetControlGroup", void, ICmpObstruction, SetControlGroup, entity_id_t) | DEFINE_INTERFACE_METHOD("SetControlGroup", ICmpObstruction, SetControlGroup) | ||||
DEFINE_INTERFACE_METHOD_CONST_0("GetControlGroup", entity_id_t, ICmpObstruction, GetControlGroup) | DEFINE_INTERFACE_METHOD("GetControlGroup", ICmpObstruction, GetControlGroup) | ||||
DEFINE_INTERFACE_METHOD_1("SetControlGroup2", void, ICmpObstruction, SetControlGroup2, entity_id_t) | DEFINE_INTERFACE_METHOD("SetControlGroup2", ICmpObstruction, SetControlGroup2) | ||||
DEFINE_INTERFACE_METHOD_CONST_0("GetControlGroup2", entity_id_t, ICmpObstruction, GetControlGroup2) | DEFINE_INTERFACE_METHOD("GetControlGroup2", ICmpObstruction, GetControlGroup2) | ||||
END_INTERFACE_WRAPPER(Obstruction) | END_INTERFACE_WRAPPER(Obstruction) |
Wildfire Games · Phabricator