Show / Hide Table of Contents

Class MyIDModule

This should be replaced by MyEntityOwnershipComponent

Inheritance
System.Object
MyIDModule
Namespace: Sandbox.Game.Entities
Assembly: Sandbox.Game.dll
Syntax
public class MyIDModule : Object

Constructors

MyIDModule()

Declaration
public MyIDModule()

MyIDModule(Int64, MyOwnershipShareModeEnum)

Declaration
public MyIDModule(long owner, MyOwnershipShareModeEnum shareMode)
Parameters
Type Name Description
System.Int64 owner
MyOwnershipShareModeEnum shareMode

Properties

Owner

Declaration
public long Owner { get; set; }
Property Value
Type Description
System.Int64

ShareMode

Declaration
public MyOwnershipShareModeEnum ShareMode { get; set; }
Property Value
Type Description
MyOwnershipShareModeEnum

Methods

GetRelationPlayerBlock(Int64, Int64, MyOwnershipShareModeEnum, MyRelationsBetweenPlayerAndBlock, MyRelationsBetweenFactions, MyRelationsBetweenPlayerAndBlock, MyRelationsBetweenPlayerAndBlock)

Declaration
public static MyRelationsBetweenPlayerAndBlock GetRelationPlayerBlock(long owner, long user, MyOwnershipShareModeEnum share, MyRelationsBetweenPlayerAndBlock noFactionResult, MyRelationsBetweenFactions defaultFactionRelations, MyRelationsBetweenPlayerAndBlock defaultShareWithAllRelations, MyRelationsBetweenPlayerAndBlock defaultNoUser)
Parameters
Type Name Description
System.Int64 owner
System.Int64 user
MyOwnershipShareModeEnum share
MyRelationsBetweenPlayerAndBlock noFactionResult
MyRelationsBetweenFactions defaultFactionRelations
MyRelationsBetweenPlayerAndBlock defaultShareWithAllRelations
MyRelationsBetweenPlayerAndBlock defaultNoUser
Returns
Type Description
MyRelationsBetweenPlayerAndBlock

GetRelationPlayerPlayer(Int64, Int64, MyRelationsBetweenFactions, MyRelationsBetweenPlayers, Boolean, Boolean)

Declaration
public static MyRelationsBetweenPlayers GetRelationPlayerPlayer(long owner, long user, MyRelationsBetweenFactions defaultFactionRelations, MyRelationsBetweenPlayers defaultNoFactionRelation, bool treatFriendsAsAllies = true, bool treatNobodyAsNeutral = false)
Parameters
Type Name Description
System.Int64 owner
System.Int64 user
MyRelationsBetweenFactions defaultFactionRelations
MyRelationsBetweenPlayers defaultNoFactionRelation
System.Boolean treatFriendsAsAllies
System.Boolean treatNobodyAsNeutral
Returns
Type Description
MyRelationsBetweenPlayers

GetUserRelationToOwner(Int64, MyRelationsBetweenPlayerAndBlock)

Declaration
public MyRelationsBetweenPlayerAndBlock GetUserRelationToOwner(long identityId, MyRelationsBetweenPlayerAndBlock defaultNoUser)
Parameters
Type Name Description
System.Int64 identityId
MyRelationsBetweenPlayerAndBlock defaultNoUser
Returns
Type Description
MyRelationsBetweenPlayerAndBlock
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾