Property | Type | Description | |
---|---|---|---|
Limbo |
Property | Type | Description | |
---|---|---|---|
_clientEvents | ClientEvent>.Dictionary | ||
_clients | HashSet |
||
_creatures | Creature>.Dictionary | ||
_creaturesRWLS | |||
_items | Item>.Dictionary | ||
_props | Prop>.Dictionary |
Method | Description | |
---|---|---|
ActivateAis ( |
Activates AIs in range of the movement path.
|
|
AddCreature ( |
Adds creature to region, sends EntityAppears.
|
|
AddItem ( Item item ) : void |
Adds item, sends EntityAppears. Use Item's Drop method to drop items in a region, unless you know what you're doing. |
|
AddProp ( |
Spawns prop, sends EntityAppears.
|
|
Broadcast ( Aura.Shared.Network.Packet packet ) : void |
Broadcasts packet in region.
|
|
Broadcast ( Aura.Shared.Network.Packet packet, Entity source, bool sendToSource = true, int range = -1 ) : void |
Broadcasts packet to all creatures in range of source.
|
|
CountAggro ( |
Returns amount of creatures of race that are targetting target in this region.
|
|
CountAggro ( |
Returns amount of creatures of race that are targetting target in this region.
|
|
CountPlayers ( ) : int |
Returns amount of players in region.
|
|
CreatureExists ( long entityId ) : bool |
Returns true if creature with given entity id exists.
|
|
GetAllGoodNpcs ( List |
Adds all good NPCs of region to list.
|
|
GetAllItems ( ) : List |
Returns a list of all items on the floor.
|
|
GetAllPlayers ( ) : List |
Returns all player creatures in region.
|
|
GetAreaId ( int x, int y ) : int |
Returns id of area at the given coordinates and adjusts it if region is dynamic, or 0 if area wasn't found.
|
|
GetClientEvent ( bool>.Func |
Returns first event that matches the predicate.
|
|
GetClientEvent ( long eventId ) : Aura.Channel.World.Entities.ClientEvent |
Returns event by id or null if it doesn't exist.
|
|
GetClientEvent ( string eventName ) : Aura.Channel.World.Entities.ClientEvent |
Returns event by name or null if it doesn't exist.
|
|
GetClientEvents ( bool>.Func |
Returns all events that matches the predicate.
|
|
GetCreature ( long entityId ) : |
Returns creature by entityId, or null, if it doesn't exist.
|
|
GetCreature ( string name ) : |
Returns creature by name, or null, if it doesn't exist.
|
|
GetCreatureSafe ( long entityId ) : |
Returns creature by entity id, throws SevereViolation exception if creature doesn't exist.
|
|
GetCreatures ( bool>.Func |
Returns list of creatures that match predicate.
|
|
GetCreaturesInPolygon ( ) : List |
Returns new list of all creatures within the specified polygon.
|
|
GetCreaturesInRange ( |
Returns new list of all creatures within range of position.
|
|
GetEntitiesInRange ( Entity source, int range = -1 ) : List |
Returns new list of all entities within range of source.
|
|
GetItem ( bool>.Func |
Returns first item that matches predicate, or null if none were found.
|
|
GetItem ( long entityId ) : Item |
Returns item or null.
|
|
GetMatchingEvents ( string eventPath ) : List |
Returns a list of events that start with the given path, e.g. "Uladh_main/field_Tir_S_aa/fish_tircho_stream_", to get all fishing events starting with that name.
|
|
GetNpc ( long entityId ) : |
Returns NPC by entityId, or null, if no NPC with that id exists.
|
|
GetNpcSafe ( long entityId ) : |
Returns NPC by entity id, throws SevereViolation exception if NPC doesn't exist.
|
|
GetNpcs ( bool>.Func |
Returns list of creatures that match predicate.
|
|
GetPlayer ( string name ) : Aura.Channel.World.Entities.PlayerCreature |
Returns first player creature with the given name, or null.
|
|
GetPlayersInRange ( |
Returns all player creatures in range.
|
|
GetProp ( bool>.Func |
Returns first prop that matches the predicate, or null if no matching props were found.
|
|
GetProp ( long entityId ) : |
Returns prop or null.
|
|
GetProps ( bool>.Func |
Returns list of all props that match the predicate.
|
|
GetVisibleCreaturesInRange ( Entity entity, int range = VisibleRange ) : ICollection |
Returns all visible creatures in range of entity, excluding itself.
|
|
GetVisibleEntities ( |
Returns a list of visible entities, from the view point of creature.
|
|
IsOnStreet ( |
Returns true if given position is on the street.
|
|
OnPlayerEntered ( |
||
RemoveCreature ( |
Removes creature from region, sends EntityDisappears.
|
|
RemoveItem ( Item item ) : void |
Despawns item, sends EntityDisappears.
|
|
RemoveProp ( |
Despawns prop, sends EntityDisappears.
|
|
RemoveScriptedEntities ( ) : void |
Removes all scripted entites from this region.
|
|
UpdateEntities ( ) : void |
Updates all entites, removing dead ones, updating visibility, etc.
|
Method | Description | |
---|---|---|
InitializeFromData ( ) : void |
Adds all props found in the client for this region and creates a list of areas.
|
|
LoadClientEvents ( ) : void |
Adds all props found in the client for this region.
|
|
LoadProps ( ) : void |
Adds all props found in the client for this region.
|
|
Region ( int regionId ) : System |
Initializes class.
|
Method | Description | |
---|---|---|
AddClientEvent ( Aura.Channel.World.Entities.ClientEvent clientEvent ) : void |
Adds client event to region.
|
|
GetNewPropEntityId ( |
Generates entity id for prop.
|
|
RemoveOverdueEntities ( ) : void |
Removes expired entities.
|
|
UpdateVisibility ( ) : void |
Updates visible entities on all clients.
|
public ActivateAis ( |
||
creature | ||
from | ||
to | ||
return | void |
public AddCreature ( |
||
creature | ||
return | void |
public AddProp ( |
||
prop | ||
return | void |
public Broadcast ( Aura.Shared.Network.Packet packet ) : void | ||
packet | Aura.Shared.Network.Packet | |
return | void |
public Broadcast ( Aura.Shared.Network.Packet packet, Entity source, bool sendToSource = true, int range = -1 ) : void | ||
packet | Aura.Shared.Network.Packet | |
source | Entity | |
sendToSource | bool | |
range | int | |
return | void |
public CountAggro ( |
||
target | ||
return | int |
public CountAggro ( |
||
target | ||
raceId | int | |
return | int |
public CreatureExists ( long entityId ) : bool | ||
entityId | long | |
return | bool |
public GetClientEvent ( bool>.Func |
||
predicate | bool>.Func | |
return | Aura.Channel.World.Entities.ClientEvent |
public GetClientEvent ( long eventId ) : Aura.Channel.World.Entities.ClientEvent | ||
eventId | long | |
return | Aura.Channel.World.Entities.ClientEvent |
public GetClientEvent ( string eventName ) : Aura.Channel.World.Entities.ClientEvent | ||
eventName | string | |
return | Aura.Channel.World.Entities.ClientEvent |
public GetClientEvents ( bool>.Func |
||
predicate | bool>.Func | |
return | Aura.Channel.World.Entities.ClientEvent[] |
public GetCreature ( long entityId ) : |
||
entityId | long | |
return |
public GetCreature ( string name ) : |
||
name | string | |
return |
public GetCreatureSafe ( long entityId ) : |
||
entityId | long | |
return |
public GetCreatures ( bool>.Func |
||
predicate | bool>.Func | |
return | ICollection |
public GetCreaturesInRange ( |
||
pos | ||
range | int | |
return | List |
public GetEntitiesInRange ( Entity source, int range = -1 ) : List |
||
source | Entity | |
range | int | Leave at default for visible range. |
return | List |
public GetItem ( bool>.Func |
||
predicate | bool>.Func | |
return | Item |
public GetMatchingEvents ( string eventPath ) : List |
||
eventPath | string | |
return | List |
public GetNpc ( long entityId ) : |
||
entityId | long | |
return |
public GetNpcSafe ( long entityId ) : |
||
entityId | long | |
return |
public GetNpcs ( bool>.Func |
||
predicate | bool>.Func | |
return | ICollection |
public GetPlayer ( string name ) : Aura.Channel.World.Entities.PlayerCreature | ||
name | string | |
return | Aura.Channel.World.Entities.PlayerCreature |
public GetPlayersInRange ( |
||
pos | ||
range | int | |
return | List |
public GetProp ( bool>.Func |
||
predicate | bool>.Func | |
return |
public GetProp ( long entityId ) : |
||
entityId | long | |
return |
public GetProps ( bool>.Func |
||
predicate | bool>.Func | |
return | IList |
public GetVisibleCreaturesInRange ( Entity entity, int range = VisibleRange ) : ICollection |
||
entity | Entity | |
range | int | |
return | ICollection |
public GetVisibleEntities ( |
||
creature | ||
return | List |
public OnPlayerEntered ( |
||
creature | ||
prevRegionId | int | |
return | void |
public RemoveCreature ( |
||
creature | ||
return | void |
public RemoveProp ( |
||
prop | ||
return | void |
protected Dictionary |
||
return | ClientEvent>.Dictionary |
protected ReaderWriterLockSlim,System.Threading _creaturesRWLS | ||
return |