C# Class ObjectInteraction, UnderworldExporter

Inheritance: Object3D
Mostrar archivo Open project: hankmorgan/UnderworldExporter Class Usage Examples

Public Properties

Property Type Description
CanBePickedUp bool
CanBeUsed bool
InvDisplayIndex int
Link int
Owner int
PickedUp bool
PlaySoundEffects bool
Quality int
WorldDisplayIndex int
animationStarted bool
aud AudioSource
flags int
ignoreSprite bool
inventorySlot int
isAnimated bool
isEnchanted bool
isIdentified bool
isQuant bool
item_id int
tc TextureController

Public Methods

Method Description
Alias ( int id ) : int
AliasItemId ( ) : int
Attack ( int damage, GameObject source ) : bool
CanMerge ( ObjectInteraction mergingInto, ObjectInteraction mergingFrom ) : bool
ChangeType ( int newID, int newType ) : bool
CombineObject ( GameObject InputObject1, GameObject InputObject2 ) : GameObject
CopyGameObjectInteraction ( GameObject target ) : ObjectInteraction
CreateNPC ( GameObject myObj, string NPC_ID, string EditorSprite, int npc_whoami ) : void
CreateNewObject ( int NewItem_id ) : ObjectInteraction

Creates a new game object at run time.

CreateObjectGraphics ( GameObject myObj, string AssetPath, bool BillBoard ) : GameObject
CreateObjectInteraction ( GameObject myObj, GameObject parentObj, float DimX, float DimY, float DimZ, float CenterY, string WorldString, string InventoryString, string EquipString, int ItemType, int ItemId, int link, int Quality, int Owner, int isMoveable, int isUsable, int isAnimated, int useSprite, int isQuant, int isEnchanted, int flags, int inUseFlag ) : ObjectInteraction
CreateObjectInteraction ( GameObject myObj, float DimX, float DimY, float DimZ, float CenterY, string WorldString, string InventoryString, string EquipString, int ItemType, int ItemId, int link, int Quality, int Owner, int isMoveable, int isUsable, int isAnimated, int useSprite, int isQuant, int isEnchanted, int flags, int inUseFlag ) : ObjectInteraction
CreateObjectInteraction ( GameObject myObj, float DimX, float DimY, float DimZ, float CenterY, string WorldString, string InventoryString, string EquipString, int ItemType, int ItemId, int link, int Quality, int Owner, int isMoveable, int isUsable, int isAnimated, int useSprite, int isQuant, int isEnchanted, int flags, int inUseFlag, string ChildName ) : ObjectInteraction
Equip ( int SlotNo ) : bool
ExamineVerb ( ) : string
FailMessage ( ) : bool
GetEquipDisplay ( ) : Sprite
GetEquipString ( ) : string
GetHitFrameEnd ( ) : int
GetHitFrameStart ( ) : int
GetImpactPoint ( ) : Vector3

Gets the impact point location that will spawn when this object is hit.

GetInventoryDisplay ( ) : Sprite
GetItemType ( ) : int

Gets the type of the item from object masters. UWE object type codes.

GetQty ( ) : int
GetWeight ( ) : float
GetWorldDisplay ( ) : Sprite
IsStackable ( ) : bool
LookDescription ( ) : bool
LookDescriptionContext ( ) : string

Looks the description to be displayed in a context menu.

Merge ( ObjectInteraction mergingInto, ObjectInteraction mergingFrom ) : void
OnCollisionEnter ( Collision collision ) : void
Pickup ( ) : bool
PickupVerb ( ) : string
PutItemAway ( int SlotNo ) : bool
RefreshAnim ( ) : void
SetNPCProps ( GameObject myObj, int npc_whoami, int npc_xhome, int npc_yhome, int npc_hunger, int npc_health, int npc_hp, int npc_arms, int npc_power, int npc_goal, int npc_attitude, int npc_gtarg, int npc_talkedto, int npc_level, int npc_name, string gtarg_name, string NavMeshRegion ) : void
SetWorldDisplay ( Sprite NewSprite ) : void
Split ( ObjectInteraction splitFrom ) : void
Split ( ObjectInteraction splitFrom, ObjectInteraction splitTo ) : void
Start ( ) : void
TalkTo ( ) : bool
UnEquip ( int SlotNo ) : bool
Update ( ) : void
UpdateAnimation ( ) : void
Use ( ) : bool
UseObjectOnVerb_Inv ( ) : string
UseObjectOnVerb_World ( ) : string
UseVerb ( ) : string
consumeObject ( ) : void
getMessageLog ( ) : ScrollController

Method Details

Alias() public static method

public static Alias ( int id ) : int
id int
return int

AliasItemId() public method

public AliasItemId ( ) : int
return int

Attack() public method

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

CanMerge() public static method

public static CanMerge ( ObjectInteraction mergingInto, ObjectInteraction mergingFrom ) : bool
mergingInto ObjectInteraction
mergingFrom ObjectInteraction
return bool

ChangeType() public method

public ChangeType ( int newID, int newType ) : bool
newID int
newType int
return bool

CombineObject() public method

public CombineObject ( GameObject InputObject1, GameObject InputObject2 ) : GameObject
InputObject1 GameObject
InputObject2 GameObject
return GameObject

CopyGameObjectInteraction() public method

public CopyGameObjectInteraction ( GameObject target ) : ObjectInteraction
target GameObject
return ObjectInteraction

CreateNPC() public static method

public static CreateNPC ( GameObject myObj, string NPC_ID, string EditorSprite, int npc_whoami ) : void
myObj GameObject
NPC_ID string
EditorSprite string
npc_whoami int
return void

CreateNewObject() public static method

Creates a new game object at run time.
public static CreateNewObject ( int NewItem_id ) : ObjectInteraction
NewItem_id int New item identifier.
return ObjectInteraction

CreateObjectGraphics() public static method

public static CreateObjectGraphics ( GameObject myObj, string AssetPath, bool BillBoard ) : GameObject
myObj GameObject
AssetPath string
BillBoard bool
return GameObject

CreateObjectInteraction() public static method

public static CreateObjectInteraction ( GameObject myObj, GameObject parentObj, float DimX, float DimY, float DimZ, float CenterY, string WorldString, string InventoryString, string EquipString, int ItemType, int ItemId, int link, int Quality, int Owner, int isMoveable, int isUsable, int isAnimated, int useSprite, int isQuant, int isEnchanted, int flags, int inUseFlag ) : ObjectInteraction
myObj GameObject
parentObj GameObject
DimX float
DimY float
DimZ float
CenterY float
WorldString string
InventoryString string
EquipString string
ItemType int
ItemId int
link int
Quality int
Owner int
isMoveable int
isUsable int
isAnimated int
useSprite int
isQuant int
isEnchanted int
flags int
inUseFlag int
return ObjectInteraction

CreateObjectInteraction() public static method

public static CreateObjectInteraction ( GameObject myObj, float DimX, float DimY, float DimZ, float CenterY, string WorldString, string InventoryString, string EquipString, int ItemType, int ItemId, int link, int Quality, int Owner, int isMoveable, int isUsable, int isAnimated, int useSprite, int isQuant, int isEnchanted, int flags, int inUseFlag ) : ObjectInteraction
myObj GameObject
DimX float
DimY float
DimZ float
CenterY float
WorldString string
InventoryString string
EquipString string
ItemType int
ItemId int
link int
Quality int
Owner int
isMoveable int
isUsable int
isAnimated int
useSprite int
isQuant int
isEnchanted int
flags int
inUseFlag int
return ObjectInteraction

CreateObjectInteraction() public static method

public static CreateObjectInteraction ( GameObject myObj, float DimX, float DimY, float DimZ, float CenterY, string WorldString, string InventoryString, string EquipString, int ItemType, int ItemId, int link, int Quality, int Owner, int isMoveable, int isUsable, int isAnimated, int useSprite, int isQuant, int isEnchanted, int flags, int inUseFlag, string ChildName ) : ObjectInteraction
myObj GameObject
DimX float
DimY float
DimZ float
CenterY float
WorldString string
InventoryString string
EquipString string
ItemType int
ItemId int
link int
Quality int
Owner int
isMoveable int
isUsable int
isAnimated int
useSprite int
isQuant int
isEnchanted int
flags int
inUseFlag int
ChildName string
return ObjectInteraction

Equip() public method

public Equip ( int SlotNo ) : bool
SlotNo int
return bool

ExamineVerb() public method

public ExamineVerb ( ) : string
return string

FailMessage() public method

public FailMessage ( ) : bool
return bool

GetEquipDisplay() public method

public GetEquipDisplay ( ) : Sprite
return Sprite

GetEquipString() public method

public GetEquipString ( ) : string
return string

GetHitFrameEnd() public method

public GetHitFrameEnd ( ) : int
return int

GetHitFrameStart() public method

public GetHitFrameStart ( ) : int
return int

GetImpactPoint() public method

Gets the impact point location that will spawn when this object is hit.
public GetImpactPoint ( ) : Vector3
return Vector3

GetInventoryDisplay() public method

public GetInventoryDisplay ( ) : Sprite
return Sprite

GetItemType() public method

Gets the type of the item from object masters. UWE object type codes.
public GetItemType ( ) : int
return int

GetQty() public method

public GetQty ( ) : int
return int

GetWeight() public method

public GetWeight ( ) : float
return float

GetWorldDisplay() public method

public GetWorldDisplay ( ) : Sprite
return Sprite

IsStackable() public method

public IsStackable ( ) : bool
return bool

LookDescription() public method

public LookDescription ( ) : bool
return bool

LookDescriptionContext() public method

Looks the description to be displayed in a context menu.
public LookDescriptionContext ( ) : string
return string

Merge() public static method

public static Merge ( ObjectInteraction mergingInto, ObjectInteraction mergingFrom ) : void
mergingInto ObjectInteraction
mergingFrom ObjectInteraction
return void

OnCollisionEnter() public method

public OnCollisionEnter ( Collision collision ) : void
collision Collision
return void

Pickup() public method

public Pickup ( ) : bool
return bool

PickupVerb() public method

public PickupVerb ( ) : string
return string

PutItemAway() public method

public PutItemAway ( int SlotNo ) : bool
SlotNo int
return bool

RefreshAnim() public method

public RefreshAnim ( ) : void
return void

SetNPCProps() public static method

public static SetNPCProps ( GameObject myObj, int npc_whoami, int npc_xhome, int npc_yhome, int npc_hunger, int npc_health, int npc_hp, int npc_arms, int npc_power, int npc_goal, int npc_attitude, int npc_gtarg, int npc_talkedto, int npc_level, int npc_name, string gtarg_name, string NavMeshRegion ) : void
myObj GameObject
npc_whoami int
npc_xhome int
npc_yhome int
npc_hunger int
npc_health int
npc_hp int
npc_arms int
npc_power int
npc_goal int
npc_attitude int
npc_gtarg int
npc_talkedto int
npc_level int
npc_name int
gtarg_name string
NavMeshRegion string
return void

SetWorldDisplay() public method

public SetWorldDisplay ( Sprite NewSprite ) : void
NewSprite Sprite
return void

Split() public static method

public static Split ( ObjectInteraction splitFrom ) : void
splitFrom ObjectInteraction
return void

Split() public static method

public static Split ( ObjectInteraction splitFrom, ObjectInteraction splitTo ) : void
splitFrom ObjectInteraction
splitTo ObjectInteraction
return void

Start() public method

public Start ( ) : void
return void

TalkTo() public method

public TalkTo ( ) : bool
return bool

UnEquip() public method

public UnEquip ( int SlotNo ) : bool
SlotNo int
return bool

Update() public method

public Update ( ) : void
return void

UpdateAnimation() public method

public UpdateAnimation ( ) : void
return void

Use() public method

public Use ( ) : bool
return bool

UseObjectOnVerb_Inv() public method

public UseObjectOnVerb_Inv ( ) : string
return string

UseObjectOnVerb_World() public method

public UseObjectOnVerb_World ( ) : string
return string

UseVerb() public method

public UseVerb ( ) : string
return string

consumeObject() public method

public consumeObject ( ) : void
return void

getMessageLog() public method

public getMessageLog ( ) : ScrollController
return ScrollController

Property Details

CanBePickedUp public_oe property

Indicates if the object can be picked up.
public bool CanBePickedUp
return bool

CanBeUsed public_oe property

Indicates if the object can be used.
public bool CanBeUsed
return bool

InvDisplayIndex public_oe property

The Sprite index number to use when displaying this object in the inventory. (Note that armour is handled differently on the paperdoll- Uses equip string from objectmasters)
public int InvDisplayIndex
return int

Link public_oe property

public int Link
return int

Owner public_oe property

public int Owner
return int

PickedUp public_oe property

Tells if object is in the inventory or in the open world in case there is different behaviours needed depending on the case.
public bool PickedUp
return bool

PlaySoundEffects public_oe static_oe property

public static bool PlaySoundEffects
return bool

Quality public_oe property

public int Quality
return int

WorldDisplayIndex public_oe property

The sprite index number to use when displaying this object in the game world.
public int WorldDisplayIndex
return int

animationStarted public_oe property

public bool animationStarted
return bool

aud public_oe property

public AudioSource aud
return AudioSource

flags public_oe property

The flags from UW on this object.
public int flags
return int

ignoreSprite public_oe property

Ignores the sprite indices and just uses what it is generated with. Usually switches and signs that use tmobj.
public bool ignoreSprite
return bool

inventorySlot public_oe property

The inventory slot that the object is in.
public int inventorySlot
return int

isAnimated public_oe property

public bool isAnimated
return bool

isEnchanted public_oe property

public bool isEnchanted
return bool

isIdentified public_oe property

public bool isIdentified
return bool

isQuant public_oe property

public bool isQuant
return bool

item_id public_oe property

The item Id. Uses the constants from above.
public int item_id
return int

tc public_oe static_oe property

public static TextureController tc
return TextureController