User Tools

Site Tools


custom_classes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
custom_classes [2018/09/10 11:18]
gobrosse [Customizable classes]
custom_classes [2018/09/10 11:20]
gobrosse [Mods Programming::Custom Classes]
Line 1: Line 1:
 ====== Mods Programming::​Custom Classes ====== ====== Mods Programming::​Custom Classes ======
  
-As mentioned in the mods [generalities](mod_generalities) page, content definitions can reference a custom class, using the 'class' or '​customClass' property :+As mentioned in the mods [generalities](mod_generalities) page, content definitions can reference a custom class, using the '​class'​ property :
 ``` ```
 entity flying_pig { entity flying_pig {
Line 28: Line 28:
  
 | Class | Purpose | Instanced | Notes | | Class | Purpose | Instanced | Notes |
-| io.xol.chunkstories.api.entity.components.EntitityComponent ​| [ECS](https://​en.wikipedia.org/​wiki/​Entity%E2%80%93component%E2%80%93system)-like system | Once per entity using it | Not a true ECS, [read more](entities) |+| io.xol.chunkstories.api.entity.traits.Trait| [ECS](https://​en.wikipedia.org/​wiki/​Entity%E2%80%93component%E2%80%93system)-like system | Once per entity using it | Not a true ECS, [read more](entities) |
 | io.xol.chunkstories.api.voxel.components.VoxelComponent | Extra info beyond 8 bit metadata | Once per voxel that defines some | Not an ECS at all, more like freely attached data with an observer pattern | | io.xol.chunkstories.api.voxel.components.VoxelComponent | Extra info beyond 8 bit metadata | Once per voxel that defines some | Not an ECS at all, more like freely attached data with an observer pattern |
 | io.xol.chunkstories.api.particles.ParticleTypeHandler.ParticleData | Particle data storage | Once per particle | Inner class of ParticleTypeHandler | | io.xol.chunkstories.api.particles.ParticleTypeHandler.ParticleData | Particle data storage | Once per particle | Inner class of ParticleTypeHandler |
custom_classes.txt ยท Last modified: 2018/09/10 11:20 by gobrosse