C# Class ObjectInteraction, UnderworldExporter

Inheritance: Object3D
Afficher le fichier Open project: hankmorgan/UnderworldExporter Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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 méthode

public static Alias ( int id ) : int
id int
Résultat int

AliasItemId() public méthode

public AliasItemId ( ) : int
Résultat int

Attack() public méthode

public Attack ( int damage, GameObject source ) : bool
damage int
source GameObject
Résultat bool

CanMerge() public static méthode

public static CanMerge ( ObjectInteraction mergingInto, ObjectInteraction mergingFrom ) : bool
mergingInto ObjectInteraction
mergingFrom ObjectInteraction
Résultat bool

ChangeType() public méthode

public ChangeType ( int newID, int newType ) : bool
newID int
newType int
Résultat bool

CombineObject() public méthode

public CombineObject ( GameObject InputObject1, GameObject InputObject2 ) : GameObject
InputObject1 GameObject
InputObject2 GameObject
Résultat GameObject

CopyGameObjectInteraction() public méthode

public CopyGameObjectInteraction ( GameObject target ) : ObjectInteraction
target GameObject
Résultat ObjectInteraction

CreateNPC() public static méthode

public static CreateNPC ( GameObject myObj, string NPC_ID, string EditorSprite, int npc_whoami ) : void
myObj GameObject
NPC_ID string
EditorSprite string
npc_whoami int
Résultat void

CreateNewObject() public static méthode

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

CreateObjectGraphics() public static méthode

public static CreateObjectGraphics ( GameObject myObj, string AssetPath, bool BillBoard ) : GameObject
myObj GameObject
AssetPath string
BillBoard bool
Résultat GameObject

CreateObjectInteraction() public static méthode

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
Résultat ObjectInteraction

CreateObjectInteraction() public static méthode

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
Résultat ObjectInteraction

CreateObjectInteraction() public static méthode

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
Résultat ObjectInteraction

Equip() public méthode

public Equip ( int SlotNo ) : bool
SlotNo int
Résultat bool

ExamineVerb() public méthode

public ExamineVerb ( ) : string
Résultat string

FailMessage() public méthode

public FailMessage ( ) : bool
Résultat bool

GetEquipDisplay() public méthode

public GetEquipDisplay ( ) : Sprite
Résultat Sprite

GetEquipString() public méthode

public GetEquipString ( ) : string
Résultat string

GetHitFrameEnd() public méthode

public GetHitFrameEnd ( ) : int
Résultat int

GetHitFrameStart() public méthode

public GetHitFrameStart ( ) : int
Résultat int

GetImpactPoint() public méthode

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

GetInventoryDisplay() public méthode

public GetInventoryDisplay ( ) : Sprite
Résultat Sprite

GetItemType() public méthode

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

GetQty() public méthode

public GetQty ( ) : int
Résultat int

GetWeight() public méthode

public GetWeight ( ) : float
Résultat float

GetWorldDisplay() public méthode

public GetWorldDisplay ( ) : Sprite
Résultat Sprite

IsStackable() public méthode

public IsStackable ( ) : bool
Résultat bool

LookDescription() public méthode

public LookDescription ( ) : bool
Résultat bool

LookDescriptionContext() public méthode

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

Merge() public static méthode

public static Merge ( ObjectInteraction mergingInto, ObjectInteraction mergingFrom ) : void
mergingInto ObjectInteraction
mergingFrom ObjectInteraction
Résultat void

OnCollisionEnter() public méthode

public OnCollisionEnter ( Collision collision ) : void
collision Collision
Résultat void

Pickup() public méthode

public Pickup ( ) : bool
Résultat bool

PickupVerb() public méthode

public PickupVerb ( ) : string
Résultat string

PutItemAway() public méthode

public PutItemAway ( int SlotNo ) : bool
SlotNo int
Résultat bool

RefreshAnim() public méthode

public RefreshAnim ( ) : void
Résultat void

SetNPCProps() public static méthode

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
Résultat void

SetWorldDisplay() public méthode

public SetWorldDisplay ( Sprite NewSprite ) : void
NewSprite Sprite
Résultat void

Split() public static méthode

public static Split ( ObjectInteraction splitFrom ) : void
splitFrom ObjectInteraction
Résultat void

Split() public static méthode

public static Split ( ObjectInteraction splitFrom, ObjectInteraction splitTo ) : void
splitFrom ObjectInteraction
splitTo ObjectInteraction
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

TalkTo() public méthode

public TalkTo ( ) : bool
Résultat bool

UnEquip() public méthode

public UnEquip ( int SlotNo ) : bool
SlotNo int
Résultat bool

Update() public méthode

public Update ( ) : void
Résultat void

UpdateAnimation() public méthode

public UpdateAnimation ( ) : void
Résultat void

Use() public méthode

public Use ( ) : bool
Résultat bool

UseObjectOnVerb_Inv() public méthode

public UseObjectOnVerb_Inv ( ) : string
Résultat string

UseObjectOnVerb_World() public méthode

public UseObjectOnVerb_World ( ) : string
Résultat string

UseVerb() public méthode

public UseVerb ( ) : string
Résultat string

consumeObject() public méthode

public consumeObject ( ) : void
Résultat void

getMessageLog() public méthode

public getMessageLog ( ) : ScrollController
Résultat ScrollController

Property Details

CanBePickedUp public_oe property

Indicates if the object can be picked up.
public bool CanBePickedUp
Résultat bool

CanBeUsed public_oe property

Indicates if the object can be used.
public bool CanBeUsed
Résultat 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
Résultat int

Link public_oe property

public int Link
Résultat int

Owner public_oe property

public int Owner
Résultat 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
Résultat bool

PlaySoundEffects public_oe static_oe property

public static bool PlaySoundEffects
Résultat bool

Quality public_oe property

public int Quality
Résultat int

WorldDisplayIndex public_oe property

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

animationStarted public_oe property

public bool animationStarted
Résultat bool

aud public_oe property

public AudioSource aud
Résultat AudioSource

flags public_oe property

The flags from UW on this object.
public int flags
Résultat 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
Résultat bool

inventorySlot public_oe property

The inventory slot that the object is in.
public int inventorySlot
Résultat int

isAnimated public_oe property

public bool isAnimated
Résultat bool

isEnchanted public_oe property

public bool isEnchanted
Résultat bool

isIdentified public_oe property

public bool isIdentified
Résultat bool

isQuant public_oe property

public bool isQuant
Résultat bool

item_id public_oe property

The item Id. Uses the constants from above.
public int item_id
Résultat int

tc public_oe static_oe property

public static TextureController tc
Résultat TextureController