creator.go 297 B

123456789101112131415
  1. package ruleEngine
  2. // Creator interface
  3. type Creator interface {
  4. // make actor id
  5. CreateActorId() string
  6. // make a actor
  7. CreateActor() Actor
  8. }
  9. // ContextBasedCreator a creator with system context and actor context
  10. type ContextBasedCreator struct {
  11. SystemCtx *SystemContext
  12. Ctx Ctx
  13. }