1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

What this interface of the Hinge blocks for programming (In game)?

Discussion in 'Programming (In-game)' started by Elianthony, Jul 1, 2020.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. Elianthony

    Elianthony Trainee Engineer

    Messages:
    8
    What this interface/type of the Hinge blocks in the sparks of the future dlc for programming (In game)?

    Example:

    IMyBlockGroup group = GridTerminalSystem.GetBlockGroupWithName("A Group");
    List<IMyHingeBlocks> hinge = new List<IMyHingeBlocks>();
    // Fetch the blocks from that group. Note that the type designation is implicit
    // here, it's defined by the list above - this is why you don't need to specify
    // the type in <>.
    group.GetBlocksOfType(hinge);

    Is <IMyHingeBlocks> the type of hinge blocks in this method aplication??
     
  2. Malware

    Malware Master Engineer

    Messages:
    9,867
    It's a rotor (IMyMotorStator).
     
    • Agree Agree x 2
  3. Elianthony

    Elianthony Trainee Engineer

    Messages:
    8
    Thanks Malware!!!

    Your mdk in github is perfect!! continue with great job!

    Thanks you so much!
     
Thread Status:
This last post in this thread was made more than 31 days old.