NWH Vehicle Physics 2
Search Results for

    Show / Hide Table of Contents

    Class FuelModuleWrapper

    MonoBehaviour wrapper for the Fuel module.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    ModuleWrapper
    FuelModuleWrapper
    Namespace: NWH.VehiclePhysics2.Modules.Fuel
    Assembly: NWH.VehiclePhysics2.dll
    Syntax
    [Serializable]
    [DisallowMultipleComponent]
    public class FuelModuleWrapper : ModuleWrapper

    Fields

    module

    The FuelModule instance managed by this wrapper.

    Declaration
    public FuelModule module
    Field Value
    Type Description
    FuelModule

    Methods

    GetModule()

    Returns the contained FuelModule as a VehicleComponent.

    Declaration
    public override VehicleComponent GetModule()
    Returns
    Type Description
    VehicleComponent

    The FuelModule instance cast to VehicleComponent.

    Overrides
    ModuleWrapper.GetModule()

    SetModule(VehicleComponent)

    Sets the contained module from a VehicleComponent reference.

    Declaration
    public override void SetModule(VehicleComponent module)
    Parameters
    Type Name Description
    VehicleComponent module

    The VehicleComponent to set, must be a FuelModule instance.

    Overrides
    ModuleWrapper.SetModule(VehicleComponent)
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics