EPOK RUNTIME
epok::Line2DComponent
Class
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Class
Class declared by the world2d-content module for the world2d content module.
Basic usage
This generated sketch illustrates syntax for reaching the type; adapt it to the actual API contract. Open a member below for an operation-specific example.
C++ example
#include "world2d_content.hpp"
epok::Line2DComponent& value = /* obtain a valid instance from your game */;Fields and constants
begin_colorExposes `begin_color` on `epok::Line2DComponent` for the world2d content module.FieldblendExposes `blend` on `epok::Line2DComponent` for the world2d content module.FieldclosedExposes `closed` on `epok::Line2DComponent` for the world2d content module.Fieldend_colorExposes `end_color` on `epok::Line2DComponent` for the world2d content module.FieldfollowNodes the line runs through, in order: the service moves the points onto them every step (ropes, chains, beams between moving things).Fieldfollow_countExposes `follow_count` on `epok::Line2DComponent` for the world2d content module.Fieldlink2dExposes `link2d` on `epok::Line2DComponent` for the world2d content module.Fieldpoint_countExposes `point_count` on `epok::Line2DComponent` for the world2d content module.FieldpointsExposes `points` on `epok::Line2DComponent` for the world2d content module.Fieldstatic_class_idExposes `static_class_id` on `epok::Line2DComponent` for the world2d content module.VariablevisibleExposes `visible` on `epok::Line2DComponent` for the world2d content module.FieldwidthExposes `width` on `epok::Line2DComponent` for the world2d content module.Fieldz_indexExposes `z_index` on `epok::Line2DComponent` for the world2d content module.FieldPublic methods
~Line2DComponentReleases the resources owned by `epok::Line2DComponent`.destructoradd_pointAdds point as part of the world2d content module.Methodclass_idPerforms `class id` as part of the world2d content module.Methodclear_pointsClears points as part of the world2d content module.Methodfollow_nodesMoves the points onto the followed nodes.Methodget_point_countReturns point count as part of the world2d content module.Methodget_point_xReturns point x as part of the world2d content module.Methodget_point_yReturns point y as part of the world2d content module.Methodlevel_attachedPerforms `level attached` as part of the world2d content module.Methodremove_pointRemoves point as part of the world2d content module.Methodset_colorsSets colors as part of the world2d content module.Methodset_pointSets point as part of the world2d content module.Methodset_visibleSets visible as part of the world2d content module.Methodset_widthSets width as part of the world2d content module.Methodstop_followingStops following nodes: the points stay where they are and are the line's own again.Method