ue4

package
v0.0.0-...-6ac6f58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUE4

func NewUE4() (handler.Handler, error)

NewUE4 get ue4 scene handler

Types

type UE4

type UE4 struct {
	// contains filtered or unexported fields
}

UE4 定义了ue4场景下的各类子场景总和, 包含了win/mac/linux平台下的c/c++代码编译, 链接, shader编译等

func (*UE4) FinalExecute

func (u *UE4) FinalExecute(args []string)

FinalExecute 清理临时文件

func (*UE4) GetFilterRules

func (u *UE4) GetFilterRules() ([]dcSDK.FilterRuleItem, error)

GetFilterRules will return filter rule to booster

func (*UE4) GetPreloadConfig

func (u *UE4) GetPreloadConfig(config dcType.BoosterConfig) (*dcSDK.PreloadConfig, error)

GetPreloadConfig get preload config

func (*UE4) InitExtra

func (u *UE4) InitExtra(extra []byte)

InitExtra no need

func (*UE4) InitSandbox

func (u *UE4) InitSandbox(sandbox *dcSyscall.Sandbox)

InitSandbox set sandbox to ue4 scene handler

func (*UE4) LocalExecute

func (u *UE4) LocalExecute(command []string) (int, error)

LocalExecute no need

func (*UE4) LocalExecuteNeed

func (u *UE4) LocalExecuteNeed(command []string) bool

LocalExecuteNeed no need

func (*UE4) LocalLockWeight

func (u *UE4) LocalLockWeight(command []string) int32

LocalLockWeight decide local-execute lock weight, default 1

func (*UE4) NeedRemoteResource

func (u *UE4) NeedRemoteResource(command []string) bool

NeedRemoteResource check whether this command need remote resource

func (*UE4) OnRemoteFail

func (u *UE4) OnRemoteFail(command []string) (*dcSDK.BKDistCommand, error)

OnRemoteFail give chance to try other way if failed to remote execute

func (*UE4) PostExecute

func (u *UE4) PostExecute(r *dcSDK.BKDistResult) error

PostExecute 后置处理

func (*UE4) PostExecuteNeedLock

func (u *UE4) PostExecuteNeedLock(result *dcSDK.BKDistResult) bool

PostExecuteNeedLock 防止回传的文件读写跑满本机磁盘

func (*UE4) PostLockWeight

func (u *UE4) PostLockWeight(result *dcSDK.BKDistResult) int32

PostLockWeight decide post-execute lock weight, default 1

func (*UE4) PostWork

func (u *UE4) PostWork(config *dcType.BoosterConfig) error

PostWork no need

func (*UE4) PreExecute

func (u *UE4) PreExecute(command []string) (*dcSDK.BKDistCommand, error)

PreExecute 预处理, 根据不同的command来确定不同的子场景

func (*UE4) PreExecuteNeedLock

func (u *UE4) PreExecuteNeedLock(command []string) bool

PreExecuteNeedLock 防止预处理跑满本机CPU

func (*UE4) PreLockWeight

func (u *UE4) PreLockWeight(command []string) int32

PreLockWeight decide pre-execute lock weight, default 1

func (*UE4) PreWork

func (u *UE4) PreWork(config *dcType.BoosterConfig) error

PreWork no need

func (*UE4) RemoteRetryTimes

func (u *UE4) RemoteRetryTimes() int

RemoteRetryTimes will return the remote retry times

func (*UE4) RenderArgs

func (u *UE4) RenderArgs(config dcType.BoosterConfig, originArgs string) string

RenderArgs no need change

func (*UE4) ResultExtra

func (u *UE4) ResultExtra() []byte

ResultExtra no need

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL