Technical:MCDRP

From HEWIKI
Jump to: navigation, search

Contents

Modify Class Definition, Remove Parent

MCDRP <class>, <parent class>;

Arguments

<class> 
The name of the class being modified.
<parent class> 
The class to be removed as one of the parents of <class>. Only one parent class can be specified at a time.

Description

This is a CLI command that removes the <parent class> from <class>. This means that all fields of <parent class> (including any fields that it inherits) will now be removed from <class>, with one exception -- if those fields are still valid from *other* parent classes of <class>, or were already defined as part of <class>, then those fields will not be affected.

Any nodes that have already been created from <class>, plus any nodes that are of a class that inherits from <class> will be modified to have the appropriate fields removed. Nodes that are currently loaded into the GOM will be modified immediately. Other nodes that are in storage will be modified when they are next loaded into the game.

For more information, please see MCDAP - Modify Class Definition, Add Parents.

Example

: MCDRP "fruit", "saladbar"    // Remove "saladbar" class as a parent of "fruit" class
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox