Documentation ¶
Index ¶
- type SpaceInstance
- type SpaceManager
- func (s *SpaceManager) DoExploreMode(ctx context.Context, gameServer *gameServers.GameServer, skipRoot string)
- func (s *SpaceManager) FindInstance(server *gameServers.GameServer) *SpaceInstance
- func (s *SpaceManager) Logger() zerolog.Logger
- func (s *SpaceManager) StartPresetSpace(ctx context.Context, presetSpace config.PresetSpace) (*SpaceInstance, error)
- func (s *SpaceManager) WatchInstance(ctx context.Context, space *SpaceInstance)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpaceInstance ¶
type SpaceInstance struct { utils.Session PresetSpace *config.PresetSpace Server *gameServers.GameServer // contains filtered or unexported fields }
func (*SpaceInstance) GetID ¶
func (s *SpaceInstance) GetID() string
type SpaceManager ¶
func NewSpaceManager ¶
func NewSpaceManager(servers *gameServers.ServerManager, maps *assets.AssetFetcher) *SpaceManager
func (*SpaceManager) DoExploreMode ¶
func (s *SpaceManager) DoExploreMode(ctx context.Context, gameServer *gameServers.GameServer, skipRoot string)
func (*SpaceManager) FindInstance ¶
func (s *SpaceManager) FindInstance(server *gameServers.GameServer) *SpaceInstance
func (*SpaceManager) Logger ¶
func (s *SpaceManager) Logger() zerolog.Logger
func (*SpaceManager) StartPresetSpace ¶
func (s *SpaceManager) StartPresetSpace(ctx context.Context, presetSpace config.PresetSpace) (*SpaceInstance, error)
func (*SpaceManager) WatchInstance ¶
func (s *SpaceManager) WatchInstance(ctx context.Context, space *SpaceInstance)
Click to show internal directories.
Click to hide internal directories.