RakNet

RakNet.is_enabled

Boolean field on the RakNet table.

Söz dizimi

RakNet.is_enabled(): boolean
Aliaslar raknet.is_enabled

Dönüşler

AdTipAçıklama
enabledbooleantrue when the RakNet API surface was registered for this session; false otherwise.

Açıklama

Boolean field on the RakNet table. It is true only when RakNet support is enabled for the current Real session. When it is false, the RakNet table is still present, but the send, hook, signal, priority, and reliability fields are not registered.

Parametresiz cagir. Fonksiyon gerekli contexti mevcut runtime durumundan okur.

enabled (boolean) dondurur. Basarili degerleri, nil sonuclari ve toparlanabilir hatalari ayirmak icin return tablosunu kullan.

Örnek

Check whether the RakNet API surface is available before reading RakNet methods or enum tables.

if not RakNet.is_enabled then
    warn("RakNet is disabled")
    return
end

print(RakNet.is_enabled)