Accessor
classBlock side attachment point
Fields
| Name | Type | Description |
|---|---|---|
| side | Vec3i | Side direction of the owning block |
| pos | Vec3i | Block local position |
| owner | BlockLogic | Block this accessor belongs to |
| cover | StaticCover | Cover prototype placed on this side |
Functions
Accessor:neighbor()
Accessor of the neighbor block this side touches, nil when nothing is attached to it
returns Accessor Accessor facing this one
Standard members (3)
Generated for every class of this kind by the game's codegen, not written for Accessor.
| Accessor.cast(object) | Trying to cast Object into Accessor |
| Accessor.get_class() | Return Accessor class object |
| Accessor.new(parent, name) | Creates a new Accessor attached to a block |
Inherited from Instance (1)
- Instance:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (3)
- name Object name
- Object.find(name) Find an already loaded object by name
- Object:get_class() Class of this object
Subclasses
Used by
- BlockLogic.reg param
- BlockLogic.find_accessor return
- BlockLogic.accessors return