예제 #1
0
 public override bool Equals(object ob)
 {
     if (!(ob is MyAdditionalModelGeneratorBase.MyGeneratedBlockLocation))
     {
         return(false);
     }
     MyAdditionalModelGeneratorBase.MyGeneratedBlockLocation blockLocRemoved = (MyAdditionalModelGeneratorBase.MyGeneratedBlockLocation)ob;
     return(IsSameGeneratedBlockLocation(this, blockLocRemoved));
 }
예제 #2
0
 public static bool IsSameGeneratedBlockLocation(MyAdditionalModelGeneratorBase.MyGeneratedBlockLocation blockLocAdded, MyAdditionalModelGeneratorBase.MyGeneratedBlockLocation blockLocRemoved, MyStringId generatedBlockType) =>
 (((blockLocAdded.BlockDefinition.GeneratedBlockType == generatedBlockType) && (blockLocAdded.Position == blockLocRemoved.Position)) && (blockLocAdded.Orientation == blockLocRemoved.Orientation));
예제 #3
0
 public static bool IsSameGeneratedBlockLocation(MyAdditionalModelGeneratorBase.MyGeneratedBlockLocation blockLocAdded, MyAdditionalModelGeneratorBase.MyGeneratedBlockLocation blockLocRemoved) =>
 ((ReferenceEquals(blockLocAdded.BlockDefinition, blockLocRemoved.BlockDefinition) && (blockLocAdded.Position == blockLocRemoved.Position)) && (blockLocAdded.Orientation == blockLocRemoved.Orientation));