C# Class SEToolbox.Models.CubeItemModel

Inheritance: BaseModel
Mostra file Open project: midspace/SEToolbox Class Usage Examples

Public Methods

Method Description
ChangeOwner ( long newOwnerId ) : bool
CreateCube ( MyObjectBuilderType typeId, string subTypeId, MyCubeBlockDefinition definition ) : Sandbox.Common.ObjectBuilders.MyObjectBuilder_CubeBlock
CubeItemModel ( Sandbox.Common.ObjectBuilders.MyObjectBuilder_CubeBlock cube, MyCubeBlockDefinition definition ) : System.Collections.ObjectModel
SetColor ( VRage.SerializableVector3 vector3 ) : void
ToString ( ) : string
UpdateBuildPercent ( double buildPercent ) : void
UpdateColor ( VRage.SerializableVector3 vector3 ) : void

Private Methods

Method Description
SetProperties ( Sandbox.Common.ObjectBuilders.MyObjectBuilder_CubeBlock cube, MyCubeBlockDefinition definition ) : 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

CubeItemModel() public method

public CubeItemModel ( Sandbox.Common.ObjectBuilders.MyObjectBuilder_CubeBlock cube, MyCubeBlockDefinition definition ) : System.Collections.ObjectModel
cube Sandbox.Common.ObjectBuilders.MyObjectBuilder_CubeBlock
definition MyCubeBlockDefinition
return System.Collections.ObjectModel

SetColor() public method

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

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