Empeld
Empeld plugin documentation.
|
An interface representing a block More...
Public Member Functions | |
Matrix4 | GetDynamicMeshTransform (IWorldReadonly world, Vector3i pos) |
Gets the dynamic mesh transform. More... | |
void | GetDynamicMeshClones (IWorldReadonly world, Vector3i pos, Action< Matrix4 > render) |
Gets the dynamic mesh clone matricies More... | |
Vector3 | GetVertWavePower (Vector3 pt) |
For each vertex in the mesh/block, compute how affected it is by VertWave animation Only important if AnimationMode == VertWave More... | |
bool | PhysicsSimulate (IWorld world, IWorldBlock block) |
Simulates the physics. More... | |
T | Get< T > () |
Get this instance extension type More... | |
void | Set< T > (T extension) |
Set the specified extension. More... | |
Properties | |
string | Name [get] |
Display name More... | |
string | InternalName [get] |
Name of the block internally (Usually defined by the attribute) More... | |
ushort | Id [get] |
Id that represent the block type (usually hash of InternalName) More... | |
bool | Renderable [get] |
Renderable, aka visible More... | |
BlockTextureMode | TextureMode [get] |
Render mode for the block (mostly relates to texturing) More... | |
BlockRenderMode | RenderMode [get] |
Defines how the faces of the block get rendered, and by what rules More... | |
BlockVertexMode | VertexMode [get] |
Vertex mode of the rendered block More... | |
BlockAnimationMode | AnimationMode [get] |
Gets the animation mode. More... | |
float | Transparency [get] |
Amount of transparency More... | |
string | TextureResource [get] |
Texture file that represents the image starting at the "content/textures/" root More... | |
int | TextureStretch [get] |
Number of blocks the texture stretches (default 1). Needs rendermode stretch More... | |
BlockMeshTransform | MeshTransformMode [get] |
Gets the mesh render mode More... | |
BlockMeshLodMode | MeshLodMode [get] |
Gets the LOD mode for the mesh More... | |
bool | MeshReverseNormals [get] |
If true, will reverse the ordering of the mesh vertices to change how normals are computed More... | |
int | MeshLodDistance [get] |
Distance, in lod-levels, until the lod mode is applied More... | |
int | MeshLodSkipMultiplier [get] |
Multiplying factor for how many tris to skip per lod level More... | |
string | MeshResource [get] |
Gets the mesh resource. More... | |
Matrix4 | MeshTransform [get] |
Gets the mesh transform matrix More... | |
Vector3 | MeshOverrideNormal [get] |
If provided, overrides the normal of the mesh geometry with this normal More... | |
string | IconResource [get] |
Resolved resource path to an icon representing the block More... | |
BlockIconMode | IconMode [get] |
Gets the icon mode for how the resoruce is rendered More... | |
bool | Destructable [get] |
Am I destructable More... | |
bool | Solid [get] |
Is the block solid, that is, does it have collision More... | |
double | FrictionRatio [get] |
The friction applied to walking on/through the block when slowing/stopping Normal is 1f More... | |
double | FallDamageRatio [get] |
The amount of fall damage taken by falling on (normal is 1f) More... | |
double | SpeedLimit [get] |
Speed limit going through the block. Normal is no limit More... | |
double | SpeedMultiplier [get] |
Gets the speed multiplier. More... | |
int | DamageInfliction [get] |
Amount of damage points inflicted by touching. A person is 100 damage Default 0 More... | |
double | BounceRatio [get] |
When falling on this block, bounce this much. 1f is equal height as fallen Default 0 More... | |
bool | Climbable [get] |
Can the block be climbed More... | |
bool | Sloped [get] |
Should the block be considered to be sloped More... | |
bool | IsLiquid [get] |
Gets a value indicating whether this instance is liquid. More... | |
float | FluidDensity [get] |
Affects several aspects with fluids/gasses 1) Lighter density liquids will float to the top 2) Higher densities will retrict movement (i.e. sink into, or be solid) Default 0.0; More... | |
BlockPermeableMode | FluidPermeableMode [get] |
Gets how this block reacts to fluids More... | |
Vector3d | GravityMultiplier [get] |
Gets the gravity multiplier to affect existing gravity More... | |
Vector3d | GravityConstant [get] |
Gets the gravity constant, to supply its own gravity More... | |
bool | HasPhysics [get] |
Does the block have any physics (mostly for optimization) This is weather the block will actually fall/move, not whether physics is applied to entities More... | |
bool | PhysicsAutoStart [get] |
Gets a value indicating whether this pluginbase.Objects.World.Blocks.IBlock physics auto starts, triggering on world-gen rather than interaction More... | |
TimeSpan | PhysicsFrequency [get] |
Gets the physics delay, which is how often physics will be applied More... | |
bool | HasFog [get] |
When viewport is inside block, do we alter fog (i.e. underwater) Default false More... | |
Rgba | FogColor [get] |
Return a 4-tuple of fog color (RGBA) More... | |
float | FogDensity [get] |
Density of the fog More... | |
bool | EmitsLight [get] |
Does the block emit light More... | |
Rgba | EmitColor [get] |
Emittance color More... | |
float | EmitRadius [get] |
Gets the light radius of the light More... | |
bool | EmitIsDirectional [get] |
Gets a value indicating whether this pluginbase.Objects.World.Blocks.IBlock emit is directional. More... | |
Vector3 | EmitDirection [get] |
Gets the emit direction. More... | |
float | EmitDirectionFocus [get] |
Gets the emit direction focus. More... | |
string | ParticleSystemScript [get] |
Resolved path to a particle script More... | |
bool | HasParticleSystem [get] |
Gets a value indicating whether this instance has particle system. More... | |
int | ParticleSystemViewDistance [get] |
Gets the max distance we can view the particle system from More... | |
SoundDescriptor | SoundAmbient [get] |
Ambient sound the block makes by existing More... | |
SoundDescriptor | SoundWalk [get] |
Sound of walking on the block (or moving through, in case of water) More... | |
SoundDescriptor | SoundFall [get] |
Sound for falling on block More... | |
SoundDescriptor | SoundPlace [get] |
Sound when placing block More... | |
SoundDescriptor | SoundBreak [get] |
Sound when breaking block More... | |
SoundDescriptor | SoundInteract [get] |
Sound when interacting with block More... | |
float | MaterialDensity [get] |
Gets the material density; aka its weight per cubic block More... | |
MaterialType | MaterialType [get] |
Gets the type of the material. More... | |
An interface representing a block
T pluginbase.Objects.World.Blocks.IBlock.Get< T > | ( | ) |
Get this instance extension type
T | The 1st type parameter. |
Implemented in pluginbase.Objects.World.Blocks.BlockBase.
T | : | class |
void pluginbase.Objects.World.Blocks.IBlock.GetDynamicMeshClones | ( | IWorldReadonly | world, |
Vector3i | pos, | ||
Action< Matrix4 > | render | ||
) |
Gets the dynamic mesh clone matricies
world | World. |
pos | Position. |
render | The callback used to render the mesh |
Implemented in pluginbase.Objects.World.Blocks.BlockBase, essentials.blocks.vegetation.Trees.PalmTreeLeaves, essentials.blocks.vegetation.Trees.AbstractBranch, essentials.blocks.vegetation.Brush.GrassBase, essentials.blocks.alien.Organic.EggSac, essentials.blocks.structural.Decals.DecalBase, essentials.blocks.structural.Props.CloneWallBase, essentials.blocks.structural.Props.CornerBase, essentials.blocks.structural.Props.CrystalBunchBase, essentials.blocks.structural.Props.PaneBase, essentials.blocks.structural.Props.CloneConnectedBase, and essentials.blocks.vegetation.Brush.VegetationClusterBase.
Matrix4 pluginbase.Objects.World.Blocks.IBlock.GetDynamicMeshTransform | ( | IWorldReadonly | world, |
Vector3i | pos | ||
) |
Gets the dynamic mesh transform.
world | World. |
pos | Position. |
Implemented in pluginbase.Objects.World.Blocks.BlockBase, essentials.blocks.structural.Doors.DoorBase< TOpened, TClosed >, essentials.blocks.vegetation.Brush.BrushBase, essentials.Blocks.Geological.Boulder, essentials.blocks.structural.Props.Chair, essentials.blocks.structural.Props.EndTable, essentials.blocks.alien.Vegetation.VegetationBase, essentials.blocks.structural.Props.StairsBase, and essentials.blocks.structural.Props.PropWallBase.
Vector3 pluginbase.Objects.World.Blocks.IBlock.GetVertWavePower | ( | Vector3 | pt | ) |
For each vertex in the mesh/block, compute how affected it is by VertWave animation Only important if AnimationMode == VertWave
pt | Local vertex in block/mesh-space |
Implemented in pluginbase.Objects.World.Blocks.BlockBase, essentials.blocks.vegetation.Trees.AbstractBranch, essentials.blocks.vegetation.Brush.GrassBase, essentials.blocks.vegetation.Trees.PalmTreeLeaves, essentials.blocks.vegetation.Underwater.UnderwaterBase, essentials.blocks.vegetation.Trees.AbstractLeaves, and essentials.blocks.vegetation.Brush.BrushAnimatedBase.
bool pluginbase.Objects.World.Blocks.IBlock.PhysicsSimulate | ( | IWorld | world, |
IWorldBlock | block | ||
) |
Simulates the physics.
world | If set to true world. |
block | If set to true block. |
Implemented in pluginbase.Objects.World.Blocks.BlockBase, essentials.Blocks.Liquid.LiquidBase, essentials.Blocks.Liquid.Lava, essentials.blocks.vegetation.Brush.GrassBase, essentials.blocks.vegetation.Trees.PalmTreeLeaves, essentials.Blocks.Liquid.Algae, essentials.blocks.vegetation.Trees.AbstractBranch, essentials.Blocks.Earth.Infection, essentials.blocks.structural.Props.CrystalBunchGreen, essentials.Blocks.Earth.Sand, essentials.blocks.vegetation.Trees.AbstractTrunk, and essentials.blocks.vegetation.Trees.DecidiousStump.
void pluginbase.Objects.World.Blocks.IBlock.Set< T > | ( | T | extension | ) |
Set the specified extension.
extension | Extension. |
T | The 1st type parameter. |
Implemented in pluginbase.Objects.World.Blocks.BlockBase.
T | : | class |
|
get |
Gets the animation mode.
The animation mode.
|
get |
When falling on this block, bounce this much. 1f is equal height as fallen Default 0
|
get |
Can the block be climbed
|
get |
Amount of damage points inflicted by touching. A person is 100 damage Default 0
|
get |
Am I destructable
|
get |
Emittance color
|
get |
Gets the emit direction.
The emit direction.
|
get |
Gets the emit direction focus.
The emit direction focus.
|
get |
Gets a value indicating whether this pluginbase.Objects.World.Blocks.IBlock emit is directional.
true
if emit is directional; otherwise, false
.
|
get |
Gets the light radius of the light
The light radius.
|
get |
Does the block emit light
|
get |
The amount of fall damage taken by falling on (normal is 1f)
|
get |
Affects several aspects with fluids/gasses 1) Lighter density liquids will float to the top 2) Higher densities will retrict movement (i.e. sink into, or be solid) Default 0.0;
|
get |
Gets how this block reacts to fluids
The fluid permeable.
|
get |
Return a 4-tuple of fog color (RGBA)
|
get |
Density of the fog
|
get |
The friction applied to walking on/through the block when slowing/stopping Normal is 1f
|
get |
Gets the gravity constant, to supply its own gravity
The gravity constant.
|
get |
Gets the gravity multiplier to affect existing gravity
The gravity multiplier.
|
get |
When viewport is inside block, do we alter fog (i.e. underwater) Default false
|
get |
Gets a value indicating whether this instance has particle system.
true
if this instance has particle system; otherwise, false
.
|
get |
Does the block have any physics (mostly for optimization) This is weather the block will actually fall/move, not whether physics is applied to entities
|
get |
Gets the icon mode for how the resoruce is rendered
The icon mode.
|
get |
Resolved resource path to an icon representing the block
The icon resource.
|
get |
Id that represent the block type (usually hash of InternalName)
|
get |
Name of the block internally (Usually defined by the attribute)
|
get |
Gets a value indicating whether this instance is liquid.
true
if this instance is liquid; otherwise, false
.
|
get |
Gets the material density; aka its weight per cubic block
The material density.
|
get |
Gets the type of the material.
The type of the material.
|
get |
Distance, in lod-levels, until the lod mode is applied
The mesh lod distancer.
|
get |
Gets the LOD mode for the mesh
The mesh lod mode.
|
get |
Multiplying factor for how many tris to skip per lod level
The mesh lod skip multiplier.
|
get |
If provided, overrides the normal of the mesh geometry with this normal
The mesh override normal.
|
get |
Gets the mesh resource.
The mesh resource.
|
get |
If true, will reverse the ordering of the mesh vertices to change how normals are computed
true
if mesh reverse normals; otherwise, false
.
|
get |
Gets the mesh transform matrix
The mesh transform.
|
get |
Gets the mesh render mode
The mesh mode.
|
get |
Display name
|
get |
Resolved path to a particle script
The particle system script.
|
get |
Gets the max distance we can view the particle system from
The particle system view distance.
|
get |
Gets a value indicating whether this pluginbase.Objects.World.Blocks.IBlock physics auto starts, triggering on world-gen rather than interaction
true
if physics auto start; otherwise, false
.
|
get |
Gets the physics delay, which is how often physics will be applied
The physics delay.
|
get |
Renderable, aka visible
|
get |
Defines how the faces of the block get rendered, and by what rules
The render mode.
|
get |
Should the block be considered to be sloped
true
if sloped; otherwise, false
.
|
get |
Is the block solid, that is, does it have collision
|
get |
Ambient sound the block makes by existing
|
get |
Sound when breaking block
|
get |
Sound for falling on block
|
get |
Sound when interacting with block
|
get |
Sound when placing block
|
get |
Sound of walking on the block (or moving through, in case of water)
|
get |
Speed limit going through the block. Normal is no limit
|
get |
Gets the speed multiplier.
The speed multiplier.
|
get |
Render mode for the block (mostly relates to texturing)
|
get |
Texture file that represents the image starting at the "content/textures/" root
|
get |
Number of blocks the texture stretches (default 1). Needs rendermode stretch
|
get |
Amount of transparency
|
get |
Vertex mode of the rendered block
The vertex mode.