C# Класс ObjectInteraction, UnderworldExporter

Наследование: Object3D
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Описание методов

Alias() публичный статический Метод

public static Alias ( int id ) : int
id int
Результат int

AliasItemId() публичный Метод

public AliasItemId ( ) : int
Результат int

Attack() публичный Метод

public Attack ( int damage, GameObject source ) : bool
damage int
source GameObject
Результат bool

CanMerge() публичный статический Метод

public static CanMerge ( ObjectInteraction mergingInto, ObjectInteraction mergingFrom ) : bool
mergingInto ObjectInteraction
mergingFrom ObjectInteraction
Результат bool

ChangeType() публичный Метод

public ChangeType ( int newID, int newType ) : bool
newID int
newType int
Результат bool

CombineObject() публичный Метод

public CombineObject ( GameObject InputObject1, GameObject InputObject2 ) : GameObject
InputObject1 GameObject
InputObject2 GameObject
Результат GameObject

CopyGameObjectInteraction() публичный Метод

public CopyGameObjectInteraction ( GameObject target ) : ObjectInteraction
target GameObject
Результат ObjectInteraction

CreateNPC() публичный статический Метод

public static CreateNPC ( GameObject myObj, string NPC_ID, string EditorSprite, int npc_whoami ) : void
myObj GameObject
NPC_ID string
EditorSprite string
npc_whoami int
Результат void

CreateNewObject() публичный статический Метод

Creates a new game object at run time.
public static CreateNewObject ( int NewItem_id ) : ObjectInteraction
NewItem_id int New item identifier.
Результат ObjectInteraction

CreateObjectGraphics() публичный статический Метод

public static CreateObjectGraphics ( GameObject myObj, string AssetPath, bool BillBoard ) : GameObject
myObj GameObject
AssetPath string
BillBoard bool
Результат GameObject

CreateObjectInteraction() публичный статический Метод

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
Результат ObjectInteraction

CreateObjectInteraction() публичный статический Метод

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
Результат ObjectInteraction

CreateObjectInteraction() публичный статический Метод

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
Результат ObjectInteraction

Equip() публичный Метод

public Equip ( int SlotNo ) : bool
SlotNo int
Результат bool

ExamineVerb() публичный Метод

public ExamineVerb ( ) : string
Результат string

FailMessage() публичный Метод

public FailMessage ( ) : bool
Результат bool

GetEquipDisplay() публичный Метод

public GetEquipDisplay ( ) : Sprite
Результат Sprite

GetEquipString() публичный Метод

public GetEquipString ( ) : string
Результат string

GetHitFrameEnd() публичный Метод

public GetHitFrameEnd ( ) : int
Результат int

GetHitFrameStart() публичный Метод

public GetHitFrameStart ( ) : int
Результат int

GetImpactPoint() публичный Метод

Gets the impact point location that will spawn when this object is hit.
public GetImpactPoint ( ) : Vector3
Результат Vector3

GetInventoryDisplay() публичный Метод

public GetInventoryDisplay ( ) : Sprite
Результат Sprite

GetItemType() публичный Метод

Gets the type of the item from object masters. UWE object type codes.
public GetItemType ( ) : int
Результат int

GetQty() публичный Метод

public GetQty ( ) : int
Результат int

GetWeight() публичный Метод

public GetWeight ( ) : float
Результат float

GetWorldDisplay() публичный Метод

public GetWorldDisplay ( ) : Sprite
Результат Sprite

IsStackable() публичный Метод

public IsStackable ( ) : bool
Результат bool

LookDescription() публичный Метод

public LookDescription ( ) : bool
Результат bool

LookDescriptionContext() публичный Метод

Looks the description to be displayed in a context menu.
public LookDescriptionContext ( ) : string
Результат string

Merge() публичный статический Метод

public static Merge ( ObjectInteraction mergingInto, ObjectInteraction mergingFrom ) : void
mergingInto ObjectInteraction
mergingFrom ObjectInteraction
Результат void

OnCollisionEnter() публичный Метод

public OnCollisionEnter ( Collision collision ) : void
collision Collision
Результат void

Pickup() публичный Метод

public Pickup ( ) : bool
Результат bool

PickupVerb() публичный Метод

public PickupVerb ( ) : string
Результат string

PutItemAway() публичный Метод

public PutItemAway ( int SlotNo ) : bool
SlotNo int
Результат bool

RefreshAnim() публичный Метод

public RefreshAnim ( ) : void
Результат void

SetNPCProps() публичный статический Метод

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
Результат void

SetWorldDisplay() публичный Метод

public SetWorldDisplay ( Sprite NewSprite ) : void
NewSprite Sprite
Результат void

Split() публичный статический Метод

public static Split ( ObjectInteraction splitFrom ) : void
splitFrom ObjectInteraction
Результат void

Split() публичный статический Метод

public static Split ( ObjectInteraction splitFrom, ObjectInteraction splitTo ) : void
splitFrom ObjectInteraction
splitTo ObjectInteraction
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

TalkTo() публичный Метод

public TalkTo ( ) : bool
Результат bool

UnEquip() публичный Метод

public UnEquip ( int SlotNo ) : bool
SlotNo int
Результат bool

Update() публичный Метод

public Update ( ) : void
Результат void

UpdateAnimation() публичный Метод

public UpdateAnimation ( ) : void
Результат void

Use() публичный Метод

public Use ( ) : bool
Результат bool

UseObjectOnVerb_Inv() публичный Метод

public UseObjectOnVerb_Inv ( ) : string
Результат string

UseObjectOnVerb_World() публичный Метод

public UseObjectOnVerb_World ( ) : string
Результат string

UseVerb() публичный Метод

public UseVerb ( ) : string
Результат string

consumeObject() публичный Метод

public consumeObject ( ) : void
Результат void

getMessageLog() публичный Метод

public getMessageLog ( ) : ScrollController
Результат ScrollController

Описание свойств

CanBePickedUp публичное свойство

Indicates if the object can be picked up.
public bool CanBePickedUp
Результат bool

CanBeUsed публичное свойство

Indicates if the object can be used.
public bool CanBeUsed
Результат bool

InvDisplayIndex публичное свойство

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
Результат int

Link публичное свойство

public int Link
Результат int

Owner публичное свойство

public int Owner
Результат int

PickedUp публичное свойство

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
Результат bool

PlaySoundEffects публичное статическое свойство

public static bool PlaySoundEffects
Результат bool

Quality публичное свойство

public int Quality
Результат int

WorldDisplayIndex публичное свойство

The sprite index number to use when displaying this object in the game world.
public int WorldDisplayIndex
Результат int

animationStarted публичное свойство

public bool animationStarted
Результат bool

aud публичное свойство

public AudioSource aud
Результат AudioSource

flags публичное свойство

The flags from UW on this object.
public int flags
Результат int

ignoreSprite публичное свойство

Ignores the sprite indices and just uses what it is generated with. Usually switches and signs that use tmobj.
public bool ignoreSprite
Результат bool

inventorySlot публичное свойство

The inventory slot that the object is in.
public int inventorySlot
Результат int

isAnimated публичное свойство

public bool isAnimated
Результат bool

isEnchanted публичное свойство

public bool isEnchanted
Результат bool

isIdentified публичное свойство

public bool isIdentified
Результат bool

isQuant публичное свойство

public bool isQuant
Результат bool

item_id публичное свойство

The item Id. Uses the constants from above.
public int item_id
Результат int

tc публичное статическое свойство

public static TextureController tc
Результат TextureController