C# Class SEToolbox.ViewModels.CubeItemViewModel

Inheritance: BaseViewModel
显示文件 Open project: midspace/SEToolbox

Public Methods

Method Description
ChangeOwner ( long newOwnerId ) : bool
CreateCube ( MyObjectBuilderType typeId, string subTypeId, MyCubeBlockDefinition definition ) : Sandbox.Common.ObjectBuilders.MyObjectBuilder_CubeBlock
CubeItemViewModel ( BaseViewModel parentViewModel, CubeItemModel dataModel ) : System
CubeItemViewModel ( BaseViewModel parentViewModel, CubeItemModel dataModel, IDialogService dialogService ) : System
ToString ( ) : string
UpdateBuildPercent ( double buildPercent ) : void
UpdateColor ( VRage.SerializableVector3 vector3 ) : void

Method Details

ChangeOwner() public method

public ChangeOwner ( long newOwnerId ) : bool
newOwnerId long
return bool

CreateCube() public method

public CreateCube ( MyObjectBuilderType typeId, string subTypeId, MyCubeBlockDefinition definition ) : Sandbox.Common.ObjectBuilders.MyObjectBuilder_CubeBlock
typeId MyObjectBuilderType
subTypeId string
definition MyCubeBlockDefinition
return Sandbox.Common.ObjectBuilders.MyObjectBuilder_CubeBlock

CubeItemViewModel() public method

public CubeItemViewModel ( BaseViewModel parentViewModel, CubeItemModel dataModel ) : System
parentViewModel BaseViewModel
dataModel SEToolbox.Models.CubeItemModel
return System

CubeItemViewModel() public method

public CubeItemViewModel ( BaseViewModel parentViewModel, CubeItemModel dataModel, IDialogService dialogService ) : System
parentViewModel BaseViewModel
dataModel SEToolbox.Models.CubeItemModel
dialogService IDialogService
return System

ToString() public method

public ToString ( ) : string
return string

UpdateBuildPercent() public method

public UpdateBuildPercent ( double buildPercent ) : void
buildPercent double
return void

UpdateColor() public method

public UpdateColor ( VRage.SerializableVector3 vector3 ) : void
vector3 VRage.SerializableVector3
return void