本文整理汇总了C#中CubeGridEntity类的典型用法代码示例。如果您正苦于以下问题:C# CubeGridEntity类的具体用法?C# CubeGridEntity怎么用?C# CubeGridEntity使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CubeGridEntity类属于命名空间,在下文中一共展示了CubeGridEntity类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PistonEntity
public PistonEntity( CubeGridEntity parent, MyObjectBuilder_PistonBase definition )
: base( parent, definition )
{
m_velocity = definition.Velocity;
m_minLimit = definition.MinLimit.GetValueOrDefault( 0 );
m_maxLimit = definition.MaxLimit.GetValueOrDefault( 0 );
}
示例2: ReactorEntity
public ReactorEntity( CubeGridEntity parent, MyObjectBuilder_Reactor definition, Object backingObject )
: base(parent, definition, backingObject)
{
m_Inventory = new InventoryEntity( definition.Inventory, InternalGetReactorInventory( ) );
m_lastInventoryRefresh = DateTime.Now;
}
示例3: LandingGearEntity
public LandingGearEntity(CubeGridEntity parent, MyObjectBuilder_LandingGear definition)
: base(parent, definition)
{
m_isLocked = definition.IsLocked;
m_autoLockEnabled = definition.AutoLock;
m_brakeForce = definition.BrakeForce;
}
示例4: FunctionalBlockEntity
public FunctionalBlockEntity( CubeGridEntity parent, MyObjectBuilder_FunctionalBlock definition, Object backingObject )
: base(parent, definition, backingObject)
{
m_enabled = definition.Enabled;
m_powerReceiver = new PowerReceiver( ActualObject, Parent.PowerManager, InternalGetPowerReceiver( ), new Func<float>( InternalPowerReceiverCallback ) );
}
示例5: ReactorEntity
public ReactorEntity(CubeGridEntity parent, MyObjectBuilder_Reactor definition, Object backingObject)
: base(parent, definition, backingObject)
{
m_Inventory = new InventoryEntity(definition.Inventory, InternalGetReactorInventory());
m_powerProducer = new PowerProducer(Parent.PowerManager, ActualObject);
m_lastInventoryRefresh = DateTime.Now;
}
示例6: TurretBaseEntity
public TurretBaseEntity(CubeGridEntity parent, MyObjectBuilder_TurretBase definition)
: base(parent, definition)
{
m_inventory = new InventoryEntity(definition.Inventory);
m_shootingRange = definition.Range;
m_searchingRange = m_shootingRange + 100;
m_targetMeteors = definition.TargetMeteors;
m_targetMissiles = definition.TargetMissiles;
m_targetMoving = definition.TargetMoving;
}
示例7: CubeBlockEntity
public CubeBlockEntity(CubeGridEntity parent, MyObjectBuilder_CubeBlock definition, Object backingObject)
: base(definition, backingObject)
{
m_parent = parent;
//Only enable events for non-structural blocks, for now
if (definition.EntityId != 0)
{
EntityEventManager.EntityEvent newEvent = new EntityEventManager.EntityEvent();
newEvent.type = EntityEventManager.EntityEventType.OnCubeBlockCreated;
newEvent.timestamp = DateTime.Now;
newEvent.entity = this;
if (m_parent.IsLoading)
newEvent.priority = 10;
else
newEvent.priority = 1;
EntityEventManager.Instance.AddEvent(newEvent);
}
}
示例8: VirtualMassEntity
public VirtualMassEntity( CubeGridEntity parent, MyObjectBuilder_VirtualMass definition )
: base( parent, definition )
{
}
示例9: ShipToolBaseEntity
public ShipToolBaseEntity(CubeGridEntity parent, MyObjectBuilder_ShipToolBase definition, Object backingObject)
: base(parent, definition, backingObject)
{
m_inventory = new InventoryEntity(definition.Inventory, InternalGetContainerInventory());
}
示例10: LightEntity
public LightEntity(CubeGridEntity parent, MyObjectBuilder_LightingBlock definition, Object backingObject)
: base(parent, definition, backingObject)
{
}
示例11: GyroEntity
public GyroEntity( CubeGridEntity parent, MyObjectBuilder_Gyro definition, Object backingObject )
: base( parent, definition, backingObject )
{
m_networkManager = new GyroNetworkManager( this, InternalGetGyroNetworkManager( ) );
}
示例12: InteriorTurretEntity
public InteriorTurretEntity( CubeGridEntity parent, MyObjectBuilder_InteriorTurret definition, Object backingObject )
: base( parent, definition, backingObject )
{
}
示例13: GatlingTurretEntity
public GatlingTurretEntity(CubeGridEntity parent, MyObjectBuilder_LargeGatlingTurret definition, Object backingObject)
: base(parent, definition, backingObject)
{
}
示例14: ConveyorTubeEntity
public ConveyorTubeEntity(CubeGridEntity parent, MyObjectBuilder_ConveyorConnector definition, Object backingObject)
: base(parent, definition, backingObject)
{
}
示例15: CubeBlockManager
public CubeBlockManager(CubeGridEntity parent, Object backingSource, string backingSourceMethodName)
: base(backingSource, backingSourceMethodName, InternalBackingType.Hashset)
{
m_isLoading = true;
m_parent = parent;
}