Atavism Version 2018.1AGIS API

atavism.agis.plugins
Class AgisInventoryPlugin.CreateInventoryHook

java.lang.Object
  extended by atavism.agis.plugins.AgisInventoryPlugin.CreateInventoryHook
All Implemented Interfaces:
Hook
Enclosing class:
AgisInventoryPlugin

protected class AgisInventoryPlugin.CreateInventoryHook
extends java.lang.Object
implements Hook

Hook for the CreateInventoryMessage. Calls createInventory with the list of items to be given to the player/mob. Run by the createInvSubObject method.

Author:
Andrew Harrison

Field Summary
protected  java.lang.String invItems
           
protected  OID masterOid
           
 
Constructor Summary
AgisInventoryPlugin.CreateInventoryHook(OID masterOid, java.lang.String invItems)
           
 
Method Summary
 boolean processMessage(Message msg, int flags)
          Handles processing of the message, called by EnginePlugin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

masterOid

protected OID masterOid

invItems

protected java.lang.String invItems
Constructor Detail

AgisInventoryPlugin.CreateInventoryHook

public AgisInventoryPlugin.CreateInventoryHook(OID masterOid,
                                               java.lang.String invItems)
Method Detail

processMessage

public boolean processMessage(Message msg,
                              int flags)
Description copied from interface: Hook
Handles processing of the message, called by EnginePlugin.

Specified by:
processMessage in interface Hook
Returns:
Returns true if hook chain processing should continue.


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