// SetSceneChangeDetect sets the SceneChangeDetect field's value.
499736
func (s *H265Settings) SetSceneChangeDetect(v string) *H265Settings {
	s.SceneChangeDetect = &v
	return s
}
74960
func (s *Parameter) SetChangeType(v string) *Parameter {
	s.ChangeType = &v
	return s
}
562413
func (s *GenerateChangeSetInput) SetChangesetFormat(v string) *GenerateChangeSetInput {
	s.ChangesetFormat = &v
	return s
}
791279
func (sim *simra) SetScene(driver Driver) {
	simlog.FuncIn()

	sim.spritecontainer.RemoveSprites()
	sim.gl.Reset()
	sim.spritecontainer.Initialize(sim.gl)
	peer.GetTouchPeer().RemoveAllTouchListeners()
	sim.spritecontainer.RemoveSprites()

	sim.driver = driver
	sim.spritecontainer.Initialize(sim.gl)
	err := sim.spritecontainer.AddSprite(&peer.Sprite{}, nil, fps.Progress)
	if err != nil {
		simlog.Errorf("failed to add sprite. err: %s", err.Error())
		return
	}

	driver.Initialize(sim)

	simlog.FuncOut()
}
72496
func (s *Layer) SetLifecycleEventConfiguration(v *LifecycleEventConfiguration) *Layer {
	s.LifecycleEventConfiguration = v
	return s
}
793311
func (s *UpdateApiMappingInput) SetStage(v string) *UpdateApiMappingInput {
	s.Stage = &v
	return s
}
1304591
func (s *Stack) SetChangeSetId(v string) *Stack {
	s.ChangeSetId = &v
	return s
}
1021190
func (s *CreateApiMappingOutput) SetStage(v string) *CreateApiMappingOutput {
	s.Stage = &v
	return s
}
211688
func RegisterScene(s Scene) {
	sceneMutex.RLock()
	_, ok := scenes[s.Type()]
	sceneMutex.RUnlock()
	if !ok {
		sceneMutex.Lock()
		scenes[s.Type()] = &sceneWrapper{scene: s}
		sceneMutex.Unlock()
	}
}
138180
func (s *Logger) SetComponent(v string) *Logger {
	s.Component = &v
	return s
}
635036
func (s *CreateApiMappingInput) SetStage(v string) *CreateApiMappingInput {
	s.Stage = &v
	return s
}
278936
func (s *GetApiMappingOutput) SetStage(v string) *GetApiMappingOutput {
	s.Stage = &v
	return s
}
515947
func (t *TreeView) SetChangedFunc(handler func(node *TreeNode)) *TreeView {
	t.changed = handler
	return t
}
1011280
func (r *resourceRecordSets) StartChangeset() dnsprovider.ResourceRecordChangeset {
	changeset := &resourceRecordChangeset{
		zone:               r.zone,
		resourceRecordSets: r,
	}
	return changeset
}
382953
func (s *CreateBranchInput) SetStage(v string) *CreateBranchInput {
	s.Stage = &v
	return s
}
1303579
func (s *InstanceFleetStatus) SetStateChangeReason(v *InstanceFleetStateChangeReason) *InstanceFleetStatus {
	s.StateChangeReason = v
	return s
}
882966
func SetScene(s Scene, forceNewWorld bool) {
	// Break down currentScene
	if currentScene != nil {
		if hider, ok := currentScene.(Hider); ok {
			hider.Hide()
		}
	}

	// Register Scene if needed
	sceneMutex.RLock()
	wrapper, registered := scenes[s.Type()]
	sceneMutex.RUnlock()

	if !registered {
		RegisterScene(s)

		sceneMutex.RLock()
		wrapper = scenes[s.Type()]
		sceneMutex.RUnlock()
	}

	// Initialize new Scene / World if needed
	var doSetup bool

	if wrapper.update == nil || forceNewWorld {
		t := reflect.Indirect(reflect.ValueOf(currentUpdater)).Type()
		v := reflect.New(t)
		wrapper.update = v.Interface().(Updater)
		wrapper.mailbox = &MessageManager{}

		doSetup = true
	}

	// Do the switch
	currentScene = s
	currentUpdater = wrapper.update
	Mailbox = wrapper.mailbox

	// doSetup is true whenever we're (re)initializing the Scene
	if doSetup {
		s.Preload()

		wrapper.mailbox.listeners = make(map[string][]HandlerIDPair)

		s.Setup(wrapper.update)
	} else {
		if shower, ok := currentScene.(Shower); ok {
			shower.Show()
		}
	}
}