C# Class EssentialsPlugin.Utility.CubeGrids

Afficher le fichier Open project: rexxar-tc/EssentialsPlugin

Méthodes publiques

Méthode Description
AreOwnersOnline ( GridGroup group ) : bool
CloseGroups ( HashSet groups ) : void
CreatePositionAndOrientation ( System.Vector3 position, System.Vector3 lookAt ) : MyPositionAndOrientation
DoesBlockSupplyPower ( Sandbox.Game.Entities.MyCubeBlock block ) : bool
DoesGridHavePowerSupply ( Sandbox.Game.Entities.MyCubeGrid grid ) : bool
DoesGroupHaveBlockSubtype ( GridGroup group, string subtype, int count ) : bool
DoesGroupHaveBlockType ( GridGroup group, string type, int count ) : bool
DoesGroupHaveCustomName ( GridGroup group, string customName, bool exact = false ) : bool
DoesGroupHaveDisplayName ( GridGroup group, string displayName, bool exact = false, bool grouped = false ) : bool
DoesGroupHavePowerSupply ( GridGroup group ) : bool
DoesGroupHaveTerminal ( GridGroup group ) : bool
Find ( string displayName ) : MyEntity
GetBigOwners ( MyObjectBuilder_CubeGrid grid ) : List
GetGridsUnconnected ( HashSet connectedList, HashSet entitiesToConfirm ) : void
GetLargestInGroup ( List group ) : Sandbox.Game.Entities.MyCubeGrid
HasCustomName ( Sandbox.Game.Entities.MyCubeGrid grid, string name, bool exact ) : bool
IsFullOwner ( Sandbox.Game.Entities.MyCubeGrid grid, long ownerId, IMyPlayer factionPlayer = null ) : bool
IsGroupFunctional ( GridGroup group ) : bool
IsGroupGridSize ( GridGroup group, MyCubeSize size, bool isStatic = false ) : bool
RemoveGridsInSphere ( ulong userId, Vector3D startPosition, float radius, RemoveGridTypes removeType ) : Vector3D
SafeGetObjectBuilder ( IMyCubeGrid grid ) : MyObjectBuilder_CubeGrid
ScanCleanup ( ulong userId, string words ) : HashSet
ScanGrids ( ulong userId, string words ) : HashSet

Private Methods

Méthode Description
GetOptionsText ( string>.Dictionary options ) : string

Method Details

AreOwnersOnline() public static méthode

public static AreOwnersOnline ( GridGroup group ) : bool
group GridGroup
Résultat bool

CloseGroups() public static méthode

public static CloseGroups ( HashSet groups ) : void
groups HashSet
Résultat void

CreatePositionAndOrientation() public static méthode

public static CreatePositionAndOrientation ( System.Vector3 position, System.Vector3 lookAt ) : MyPositionAndOrientation
position System.Vector3
lookAt System.Vector3
Résultat MyPositionAndOrientation

DoesBlockSupplyPower() public static méthode

public static DoesBlockSupplyPower ( Sandbox.Game.Entities.MyCubeBlock block ) : bool
block Sandbox.Game.Entities.MyCubeBlock
Résultat bool

DoesGridHavePowerSupply() public static méthode

public static DoesGridHavePowerSupply ( Sandbox.Game.Entities.MyCubeGrid grid ) : bool
grid Sandbox.Game.Entities.MyCubeGrid
Résultat bool

DoesGroupHaveBlockSubtype() public static méthode

public static DoesGroupHaveBlockSubtype ( GridGroup group, string subtype, int count ) : bool
group GridGroup
subtype string
count int
Résultat bool

DoesGroupHaveBlockType() public static méthode

public static DoesGroupHaveBlockType ( GridGroup group, string type, int count ) : bool
group GridGroup
type string
count int
Résultat bool

DoesGroupHaveCustomName() public static méthode

public static DoesGroupHaveCustomName ( GridGroup group, string customName, bool exact = false ) : bool
group GridGroup
customName string
exact bool
Résultat bool

DoesGroupHaveDisplayName() public static méthode

public static DoesGroupHaveDisplayName ( GridGroup group, string displayName, bool exact = false, bool grouped = false ) : bool
group GridGroup
displayName string
exact bool
grouped bool
Résultat bool

DoesGroupHavePowerSupply() public static méthode

public static DoesGroupHavePowerSupply ( GridGroup group ) : bool
group GridGroup
Résultat bool

DoesGroupHaveTerminal() public static méthode

public static DoesGroupHaveTerminal ( GridGroup group ) : bool
group GridGroup
Résultat bool

Find() public static méthode

public static Find ( string displayName ) : MyEntity
displayName string
Résultat MyEntity

GetBigOwners() public static méthode

public static GetBigOwners ( MyObjectBuilder_CubeGrid grid ) : List
grid MyObjectBuilder_CubeGrid
Résultat List

GetGridsUnconnected() public static méthode

public static GetGridsUnconnected ( HashSet connectedList, HashSet entitiesToConfirm ) : void
connectedList HashSet
entitiesToConfirm HashSet
Résultat void

GetLargestInGroup() public static méthode

public static GetLargestInGroup ( List group ) : Sandbox.Game.Entities.MyCubeGrid
group List
Résultat Sandbox.Game.Entities.MyCubeGrid

HasCustomName() public static méthode

public static HasCustomName ( Sandbox.Game.Entities.MyCubeGrid grid, string name, bool exact ) : bool
grid Sandbox.Game.Entities.MyCubeGrid
name string
exact bool
Résultat bool

IsFullOwner() public static méthode

public static IsFullOwner ( Sandbox.Game.Entities.MyCubeGrid grid, long ownerId, IMyPlayer factionPlayer = null ) : bool
grid Sandbox.Game.Entities.MyCubeGrid
ownerId long
factionPlayer IMyPlayer
Résultat bool

IsGroupFunctional() public static méthode

public static IsGroupFunctional ( GridGroup group ) : bool
group GridGroup
Résultat bool

IsGroupGridSize() public static méthode

public static IsGroupGridSize ( GridGroup group, MyCubeSize size, bool isStatic = false ) : bool
group GridGroup
size MyCubeSize
isStatic bool
Résultat bool

RemoveGridsInSphere() public static méthode

public static RemoveGridsInSphere ( ulong userId, Vector3D startPosition, float radius, RemoveGridTypes removeType ) : Vector3D
userId ulong
startPosition Vector3D
radius float
removeType RemoveGridTypes
Résultat Vector3D

SafeGetObjectBuilder() public static méthode

public static SafeGetObjectBuilder ( IMyCubeGrid grid ) : MyObjectBuilder_CubeGrid
grid IMyCubeGrid
Résultat MyObjectBuilder_CubeGrid

ScanCleanup() public static méthode

public static ScanCleanup ( ulong userId, string words ) : HashSet
userId ulong
words string
Résultat HashSet

ScanGrids() public static méthode

public static ScanGrids ( ulong userId, string words ) : HashSet
userId ulong
words string
Résultat HashSet