Atavism Version 2018.1AGIS API

atavism.server.engine
Interface EnginePlugin.DeleteHook

Enclosing class:
EnginePlugin

public static interface EnginePlugin.DeleteHook

The interface definition to be satisfied by delete hook objects, containing the onDelete method.


Method Summary
 void onDelete(Entity entity)
          A DeleteHook/Namespace pair must be registered by calling EnginePlugin.registerDeleteHook().
 void onDelete(OID oid, Namespace namespace)
          Called when sub-object is deleted when it's not loaded.
 

Method Detail

onDelete

void onDelete(Entity entity)
A DeleteHook/Namespace pair must be registered by calling EnginePlugin.registerDeleteHook(). The onDelete() method will be called after unloading the sub object. The entity argument can be queried for it's namespace.


onDelete

void onDelete(OID oid,
              Namespace namespace)
Called when sub-object is deleted when it's not loaded. May be called with a non-existant oid. Implementations should silently ignore this case.



Copyright © 2018 Dragonsan Studios Sp. z o.o.