Sites

Menu

WorkerOpFactory Class

Namespace: Improbable.Gdk.TestUtils
GDK package: TestUtils
Source

A static class that contains helper methods for constructing ops. All ops are empty outside of the required information given in the constructor. Underlying schema data can be populated using the return value of each function.


Static Methods

CreateAddEntityOp Source
WrappedOp<AddEntityOp> CreateAddEntityOp(long entityId)

Parameters
  • long entityId :
CreateRemoveEntityOp Source
WrappedOp<RemoveEntityOp> CreateRemoveEntityOp(long entityId)

Parameters
  • long entityId :
CreateAddComponentOp Source
WrappedOp<AddComponentOp> CreateAddComponentOp(long entityId, uint componentId)

Parameters
  • long entityId :
  • uint componentId :
CreateComponentUpdateOp Source
WrappedOp<ComponentUpdateOp> CreateComponentUpdateOp(long entityId, uint componentId)

Parameters
  • long entityId :
  • uint componentId :
CreateRemoveComponentOp Source
WrappedOp<RemoveComponentOp> CreateRemoveComponentOp(long entityId, uint componentId)

Parameters
  • long entityId :
  • uint componentId :
CreateAuthorityChangeOp Source
WrappedOp<AuthorityChangeOp> CreateAuthorityChangeOp(long entityId, uint componentId)

Parameters
  • long entityId :
  • uint componentId :
CreateCommandRequestOp Source
WrappedOp<CommandRequestOp> CreateCommandRequestOp(uint componentId, uint commandIndex, long requestId)

Parameters
  • uint componentId :
  • uint commandIndex :
  • long requestId :
CreateCommandResponseOp Source
WrappedOp<CommandResponseOp> CreateCommandResponseOp(uint componentId, uint commandIndex, long requestId)

Parameters
  • uint componentId :
  • uint commandIndex :
  • long requestId :
CreateDisconnectOp Source
WrappedOp<DisconnectOp> CreateDisconnectOp(string reason)

Parameters
  • string reason :
CreateCreateEntityResponseOp Source
WrappedOp<CreateEntityResponseOp> CreateCreateEntityResponseOp(long requestId)

Parameters
  • long requestId :
CreateDeleteEntityResponseOp Source
WrappedOp<DeleteEntityResponseOp> CreateDeleteEntityResponseOp(long requestId)

Parameters
  • long requestId :
CreateReserveEntityIdsResponseOp Source
WrappedOp<ReserveEntityIdsResponseOp> CreateReserveEntityIdsResponseOp(long requestId)

Parameters
  • long requestId :
CreateEntityQueryResponseOp Source
WrappedOp<EntityQueryResponseOp> CreateEntityQueryResponseOp(long requestId)

Parameters
  • long requestId :

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums