Tile - YEntity - Is – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:


==== class ====
==== class ====
Entity class to test


=== Returns ===
=== Returns ===


'''boolean''' Returns whether the selected '''entity is''' of certain '''class''', e.g workstation.
'''boolean''' Returns whether the selected '''entity is''' of certain '''class''', e.g workstation.
=== Availability ===
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== Description ===


Returns whether the selected '''entity is''' of certain '''class''', e.g workstation.
Returns whether the selected '''entity is''' of certain '''class''', e.g workstation.
== Is(Entity, Type) ==
[[File:YlandsTile-633.png]]
<pre>isType(type: YEntityType): boolean;</pre>
=== Parameters ===
==== type ====
Entity type to test
=== Returns ===
'''boolean'''
=== Availability ===
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]]
=== Description ===
Returns whether target entity type matches selected type.





Revision as of 12:16, 12 November 2021

Is(Entity, Class)

YlandsTile-204.png

is(klass: YTag): boolean;

Parameters

class

Entity class to test

Returns

boolean Returns whether the selected entity is of certain class, e.g workstation.

Availability

Client, Server

Description

Returns whether the selected entity is of certain class, e.g workstation.

Is(Entity, Type)

YlandsTile-633.png

isType(type: YEntityType): boolean;

Parameters

type

Entity type to test

Returns

boolean

Availability

Client, Server

Description

Returns whether target entity type matches selected type.