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 ); }
public PistonEntity( CubeGridEntity parent, MyObjectBuilder_PistonBase definition, Object backingObject ) : base( parent, definition, backingObject ) { m_velocity = definition.Velocity; m_minLimit = definition.MinLimit.GetValueOrDefault( 0 ); m_maxLimit = definition.MaxLimit.GetValueOrDefault( 0 ); m_networkManager = new PistonNetworkManager( this, GetPistonNetworkManager( ) ); }