dna_block 
A singleton for handling block-unique functions called by the DNA datum.
You don't need to add a DNA block for every feature. Only add a new one if you want this feature to be changed via genetics.
Vars | |
block_length | The length of this block when converted to ascii |
---|---|
Procs | |
apply_to_mob | Applies the DNA effects/appearance that this block's string encodes |
create_unique_block | Actually creates the unique block from the inputted target.
Not used outside of the type, see unique_block instead. |
get_block | Gets the block string from the hash inserted |
modified_hash | Takes in the old hash and a string value to change this block to inside the hash. |
position_in_hash | The position of this block's string in its hash type |
unique_block | Returns the unique block created from target. To be used for external calls. |
Var Details
block_length 
The length of this block when converted to ascii
Proc Details
apply_to_mob
Applies the DNA effects/appearance that this block's string encodes
create_unique_block
Actually creates the unique block from the inputted target.
Not used outside of the type, see unique_block
instead.
Children should always override this.
get_block
Gets the block string from the hash inserted
modified_hash
Takes in the old hash and a string value to change this block to inside the hash.
Returns a new hash with block's value updated
position_in_hash
The position of this block's string in its hash type
unique_block
Returns the unique block created from target. To be used for external calls.
Does extra checks to make sure target is valid before calling the internal
create_unique_block
, don't override this.