Atavism Version 2018.1AGIS API

atavism.server.events
Class NewLightEvent

java.lang.Object
  extended by atavism.server.engine.Event
      extended by atavism.server.events.NewLightEvent
All Implemented Interfaces:
EventParser

public class NewLightEvent
extends Event

new light information when receiving this event, please note that the loc information for the point light is not set in the light. you have to get it from the event (getLoc()) and spawn the light with it the light is NOT spawned when a server receives this message


Constructor Summary
NewLightEvent()
           
NewLightEvent(AOByteBuffer buf, ClientConnection con)
           
NewLightEvent(OID notifyOid, OID lightOid, LightData lightData)
           
 
Method Summary
 LightData getLightData()
           
 OID getLightOid()
           
 java.lang.String getName()
           
 void parseBytes(AOByteBuffer buf)
          load this event from the passed in buffer called by the constructor
 void setLightData(LightData lightData)
           
 void setLightOid(OID lightOid)
           
 AOByteBuffer toBytes()
           
 
Methods inherited from class atavism.server.engine.Event
getBuffer, getConnection, getEnqueueTime, getObjectOid, setBuffer, setConnection, setEnqueueTime, setEntity, setObject, setObjectOid, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewLightEvent

public NewLightEvent()

NewLightEvent

public NewLightEvent(AOByteBuffer buf,
                     ClientConnection con)

NewLightEvent

public NewLightEvent(OID notifyOid,
                     OID lightOid,
                     LightData lightData)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in class Event

setLightData

public void setLightData(LightData lightData)

getLightData

public LightData getLightData()

toBytes

public AOByteBuffer toBytes()
Specified by:
toBytes in class Event

parseBytes

public void parseBytes(AOByteBuffer buf)
Description copied from class: Event
load this event from the passed in buffer called by the constructor

Specified by:
parseBytes in interface EventParser
Specified by:
parseBytes in class Event

getLightOid

public OID getLightOid()

setLightOid

public void setLightOid(OID lightOid)


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