C# Class DoorControl, UnderworldExporter

Inheritance: MonoBehaviour
Datei anzeigen Open project: hankmorgan/UnderworldExporter Class Usage Examples

Public Properties

Property Type Description
DR int
DoorBusy bool
KeyIndex int
Pickable bool
Spiked bool
UseLink string
isPortcullis bool
locked bool
state bool

Public Methods

Method Description
Activate ( ) : bool
ActivateByObject ( GameObject ObjectUsed ) : bool
ApplyAttack ( int damage ) : bool
ApplyAttack ( int damage, GameObject source ) : bool
CloseDoor ( ) : void

Closes the door.

LockDoor ( ) : void

Locks the door.

LookAt ( ) : bool
OpenDoor ( ) : void

Opens the door.

Spike ( ) : bool

Spike this door. Blocks NPC from opening

ToggleDoor ( ) : void

Toggles the door open or closed.

ToggleLock ( ) : void

Toggles the lock state

UnlockDoor ( ) : void

Unlocks the door.

UseObjectOnVerb_World ( ) : string
UseVerb ( ) : string
use ( ) : bool

Private Methods

Method Description
DoorQuality ( ) : string

Gets the door condition

RaiseDoor ( Transform door, Vector3 TransformDir, float traveltime ) : IEnumerator

Raises the portcullis

RotateDoor ( Transform door, Vector3 turningAngle, float traveltime ) : IEnumerator

Rotates the door open or closed

Method Details

Activate() public method

public Activate ( ) : bool
return bool

ActivateByObject() public method

public ActivateByObject ( GameObject ObjectUsed ) : bool
ObjectUsed GameObject
return bool

ApplyAttack() public method

public ApplyAttack ( int damage ) : bool
damage int
return bool

ApplyAttack() public method

public ApplyAttack ( int damage, GameObject source ) : bool
damage int
source GameObject
return bool

CloseDoor() public method

Closes the door.
public CloseDoor ( ) : void
return void

LockDoor() public method

Locks the door.
public LockDoor ( ) : void
return void

LookAt() public method

public LookAt ( ) : bool
return bool

OpenDoor() public method

Opens the door.
public OpenDoor ( ) : void
return void

Spike() public method

Spike this door. Blocks NPC from opening
public Spike ( ) : bool
return bool

ToggleDoor() public method

Toggles the door open or closed.
public ToggleDoor ( ) : void
return void

ToggleLock() public method

Toggles the lock state
public ToggleLock ( ) : void
return void

UnlockDoor() public method

Unlocks the door.
public UnlockDoor ( ) : void
return void

UseObjectOnVerb_World() public method

public UseObjectOnVerb_World ( ) : string
return string

UseVerb() public method

public UseVerb ( ) : string
return string

use() public method

public use ( ) : bool
return bool

Property Details

DR public_oe property

public int DR
return int

DoorBusy public_oe property

public bool DoorBusy
return bool

KeyIndex public_oe property

public int KeyIndex
return int

Pickable public_oe property

public bool Pickable
return bool

Spiked public_oe property

public bool Spiked
return bool

UseLink public_oe property

public string UseLink
return string

isPortcullis public_oe property

public bool isPortcullis
return bool

locked public_oe property

public bool locked
return bool

state public_oe property

public bool state
return bool