MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / AttachObject

Function AttachObject

Source/Scripting/angelscript/asfuncs.cpp:2818–2928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2816}
2817
2818void AttachObject(ASContext* context) {
2819 context->RegisterEnum("EntityType");
2820 context->RegisterEnumValue("EntityType", "_any_type", _any_type);
2821 context->RegisterEnumValue("EntityType", "_no_type", _no_type);
2822 context->RegisterEnumValue("EntityType", "_camera_type", _camera_type);
2823 context->RegisterEnumValue("EntityType", "_terrain_type", _terrain_type);
2824 context->RegisterEnumValue("EntityType", "_env_object", _env_object);
2825 context->RegisterEnumValue("EntityType", "_movement_object", _movement_object);
2826 context->RegisterEnumValue("EntityType", "_spawn_point", _spawn_point);
2827 context->RegisterEnumValue("EntityType", "_decal_object", _decal_object);
2828 context->RegisterEnumValue("EntityType", "_hotspot_object", _hotspot_object);
2829 context->RegisterEnumValue("EntityType", "_group", _group);
2830 context->RegisterEnumValue("EntityType", "_rigged_object", _rigged_object);
2831 context->RegisterEnumValue("EntityType", "_item_object", _item_object);
2832 context->RegisterEnumValue("EntityType", "_path_point_object", _path_point_object);
2833 context->RegisterEnumValue("EntityType", "_ambient_sound_object", _ambient_sound_object);
2834 context->RegisterEnumValue("EntityType", "_placeholder_object", _placeholder_object);
2835 context->RegisterEnumValue("EntityType", "_light_probe_object", _light_probe_object);
2836 context->RegisterEnumValue("EntityType", "_dynamic_light_object", _dynamic_light_object);
2837 context->RegisterEnumValue("EntityType", "_navmesh_hint_object", _navmesh_hint_object);
2838 context->RegisterEnumValue("EntityType", "_navmesh_region_object", _navmesh_region_object);
2839 context->RegisterEnumValue("EntityType", "_navmesh_connection_object", _navmesh_connection_object);
2840 context->RegisterEnumValue("EntityType", "_reflection_capture_object", _reflection_capture_object);
2841 context->RegisterEnumValue("EntityType", "_light_volume_object", _light_volume_object);
2842 context->RegisterEnumValue("EntityType", "_prefab", _prefab);
2843
2844 context->DocsCloseBrace();
2845 context->RegisterEnum("AttachmentType");
2846 context->RegisterEnumValue("AttachmentType", "_at_attachment", _at_attachment);
2847 context->RegisterEnumValue("AttachmentType", "_at_grip", _at_grip);
2848 context->RegisterEnumValue("AttachmentType", "_at_sheathe", _at_sheathe);
2849 context->RegisterEnumValue("AttachmentType", "_at_unspecified", _at_unspecified);
2850 context->DocsCloseBrace();
2851 context->RegisterEnum("ConnectionType");
2852 context->RegisterEnumValue("ConnectionType", "kCTNone", Object::kCTNone);
2853 context->RegisterEnumValue("ConnectionType", "kCTMovementObjects", Object::kCTMovementObjects);
2854 context->RegisterEnumValue("ConnectionType", "kCTItemObjects", Object::kCTItemObjects);
2855 context->RegisterEnumValue("ConnectionType", "kCTEnvObjectsAndGroups", Object::kCTEnvObjectsAndGroups);
2856 context->RegisterEnumValue("ConnectionType", "kCTPathPoints", Object::kCTPathPoints);
2857 context->RegisterEnumValue("ConnectionType", "kCTPlaceholderObjects", Object::kCTPlaceholderObjects);
2858 context->RegisterEnumValue("ConnectionType", "kCTNavmeshConnections", Object::kCTNavmeshConnections);
2859 context->RegisterEnumValue("ConnectionType", "kCTHotspots", Object::kCTHotspots);
2860 context->DocsCloseBrace();
2861 context->RegisterObjectMethod("Object", "int GetID()", asFUNCTION(ASObjectGetID), asCALL_CDECL_OBJFIRST);
2862 context->RegisterObjectMethod("Object", "string GetName()", asFUNCTION(ASObjectGetName), asCALL_CDECL_OBJFIRST);
2863 context->RegisterObjectMethod("Object", "void SetName(const string &in)", asFUNCTION(ASObjectSetName), asCALL_CDECL_OBJFIRST);
2864 context->RegisterObjectMethod("Object", "bool IsSelected()", asFUNCTION(ASIsSelected), asCALL_CDECL_OBJFIRST);
2865 context->RegisterObjectMethod("Object", "void SetSelected(bool)", asFUNCTION(ASSetSelected), asCALL_CDECL_OBJFIRST);
2866 context->RegisterObjectMethod("Object", "void SetEnabled(bool)", asFUNCTION(ASSetEnabled), asCALL_CDECL_OBJFIRST);
2867 context->RegisterObjectMethod("Object", "void SetCollisionEnabled(bool)", asFUNCTION(ASSetCollisionEnabled), asCALL_CDECL_OBJFIRST);
2868 context->RegisterObjectMethod("Object", "bool GetEnabled()", asFUNCTION(ASGetEnabled), asCALL_CDECL_OBJFIRST);
2869 context->RegisterObjectMethod("Object", "void SetTranslation(const vec3 &in)", asFUNCTION(ASSetTranslation), asCALL_CDECL_OBJFIRST);
2870 context->RegisterObjectMethod("Object", "vec3 GetTranslation()", asFUNCTION(ASGetTranslation), asCALL_CDECL_OBJFIRST);
2871 context->RegisterObjectMethod("Object", "void SetScale(const vec3 &in)", asFUNCTION(ASSetScale), asCALL_CDECL_OBJFIRST);
2872 context->RegisterObjectMethod("Object", "mat4 GetTransform()", asFUNCTION(ASGetTransform), asCALL_CDECL_OBJFIRST);
2873 context->RegisterObjectMethod("Object", "vec3 GetScale()", asFUNCTION(ASGetScale), asCALL_CDECL_OBJFIRST);
2874 context->RegisterObjectMethod("Object", "void SetRotation(const quaternion &in)", asFUNCTION(ASSetRotation), asCALL_CDECL_OBJFIRST);
2875 context->RegisterObjectMethod("Object", "void SetTranslationRotationFast(const vec3 &in, const quaternion &in)", asFUNCTION(ASSetTranslationRotationFast), asCALL_CDECL_OBJFIRST);

Callers 1

AttachScenegraphFunction · 0.85

Calls 5

DocsCloseBraceMethod · 0.80
RegisterEnumMethod · 0.45
RegisterEnumValueMethod · 0.45
RegisterObjectMethodMethod · 0.45

Tested by

no test coverage detected