C# Класс Aura.Channel.World.Entities.Prop

Not all options are used in all props. Things like ExtraData, State, etc. are all very prop specific.
Наследование: Entity
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
Data PropsDbData
Info Aura.Shared.Mabi.Structs.PropInfo
_resource float

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

Метод Описание
Disappear ( ) : void

Removes prop from its current region.

GetDropBehavior ( int dropType ) : PropFunc

Returns prop behavior for dropping.

GetEmptyBehavior ( ) : PropFunc

Returns a prop behavior that doesn't do anything.

Use to prevent unimplemented messages.

GetPosition ( ) : Position

Returns prop's static position (Info.X|Y).

GetTargetableCreaturesInRange ( Creature owner, int range ) : ICollection

Returns targetable creatures in given range of prop. Owner of the prop and creatures he can't target are excluded.

GetWarpBehavior ( int region, int x, int y ) : PropFunc

Returns prop behavior for warping.

HasTag ( string tag ) : bool

Returns true if prop's data has the tag.

IsInside ( int x, int y ) : bool

Returns true if the given position is inside the prop.

Prop ( PropData propData, int regionId, string regionName, string areaName ) : System

Creates new prop, based on prop data.

Prop ( int id, int regionId, int x, int y, float direction, float scale = 1f, float altitude, string state = "", string ident = "", string title = "" ) : System

Creates new prop with no specific entity id.

The entity id is assigned automatically when the prop is added to a region, as the id depends on the prop's location and the region it's eventually added to. If the entity id is not supposed to be set upon adding the prop to a region, it should be set to anything but 0.

Prop ( long entityId, int id, int regionId, int x, int y, float direction, float scale, float altitude, string state, string ident, string title ) : System

Creates new prop with given entity id.

SetState ( string state ) : void

Sets prop's state and broadcasts update.

ToString ( ) : string

Returns information about the prop as string.

UpdateShapes ( ) : void

Updates shapes for current state from defaults db.

Приватные методы

Метод Описание
UpdateCollisions ( ) : void

Updates prop's shapes and collisions in current region.

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

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

Removes prop from its current region.
public Disappear ( ) : void
Результат void

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

Returns prop behavior for dropping.
public static GetDropBehavior ( int dropType ) : PropFunc
dropType int
Результат PropFunc

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

Returns a prop behavior that doesn't do anything.
Use to prevent unimplemented messages.
public static GetEmptyBehavior ( ) : PropFunc
Результат PropFunc

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

Returns prop's static position (Info.X|Y).
public GetPosition ( ) : Position
Результат Position

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

Returns targetable creatures in given range of prop. Owner of the prop and creatures he can't target are excluded.
public GetTargetableCreaturesInRange ( Creature owner, int range ) : ICollection
owner Creature Owner of the prop, who is excluded and used as reference for CanTarget (null to ignore).
range int
Результат ICollection

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

Returns prop behavior for warping.
public static GetWarpBehavior ( int region, int x, int y ) : PropFunc
region int
x int
y int
Результат PropFunc

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

Returns true if prop's data has the tag.
public HasTag ( string tag ) : bool
tag string
Результат bool

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

Returns true if the given position is inside the prop.
public IsInside ( int x, int y ) : bool
x int
y int
Результат bool

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

Creates new prop, based on prop data.
public Prop ( PropData propData, int regionId, string regionName, string areaName ) : System
propData PropData
regionId int
regionName string
areaName string
Результат System

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

Creates new prop with no specific entity id.
The entity id is assigned automatically when the prop is added to a region, as the id depends on the prop's location and the region it's eventually added to. If the entity id is not supposed to be set upon adding the prop to a region, it should be set to anything but 0.
public Prop ( int id, int regionId, int x, int y, float direction, float scale = 1f, float altitude, string state = "", string ident = "", string title = "" ) : System
id int
regionId int
x int
y int
direction float
scale float
altitude float
state string
ident string
title string
Результат System

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

Creates new prop with given entity id.
public Prop ( long entityId, int id, int regionId, int x, int y, float direction, float scale, float altitude, string state, string ident, string title ) : System
entityId long
id int
regionId int
x int
y int
direction float
scale float
altitude float
state string
ident string
title string
Результат System

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

Sets prop's state and broadcasts update.
public SetState ( string state ) : void
state string
Результат void

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

Returns information about the prop as string.
public ToString ( ) : string
Результат string

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

Updates shapes for current state from defaults db.
public UpdateShapes ( ) : void
Результат void

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

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

Data about the prop from the db.
public PropsDbData Data
Результат PropsDbData

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

Marshable prop information used for packets.
public PropInfo,Aura.Shared.Mabi.Structs Info
Результат Aura.Shared.Mabi.Structs.PropInfo

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

public float _resource
Результат float