Exemple #1
0
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (RotorEntityId.HasValue && RotorEntityId != 0)
     {
         RotorEntityId = remapHelper.RemapEntityId(RotorEntityId.Value);
     }
     if (WeldedEntityId.HasValue && WeldedEntityId != 0)
     {
         WeldedEntityId = remapHelper.RemapEntityId(WeldedEntityId.Value);
     }
 }
 public override void Remap(IMyRemapHelper remapHelper)
 {
     if (BlockEntityId != 0)
     {
         BlockEntityId = remapHelper.RemapEntityId(BlockEntityId);
     }
 }
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (RotorEntityId != 0)
     {
         RotorEntityId = remapHelper.RemapEntityId(RotorEntityId);
     }
 }
Exemple #4
0
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (TopBlockId.HasValue && TopBlockId != 0)
     {
         TopBlockId = remapHelper.RemapEntityId(TopBlockId.Value);
     }
 }
Exemple #5
0
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (PistonBlockId != 0)
     {
         PistonBlockId = remapHelper.RemapEntityId(PistonBlockId);
     }
 }
Exemple #6
0
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (ConnectedEntityId != 0)
     {
         ConnectedEntityId = remapHelper.RemapEntityId(ConnectedEntityId);
     }
 }
        public virtual void Remap(IMyRemapHelper remapHelper)
        {
            if (EntityId != 0)
            {
                EntityId = remapHelper.RemapEntityId(EntityId);
            }

            if (SubBlocks != null)
            {
                for (int i = 0; i < SubBlocks.Length; ++i)
                {
                    if (SubBlocks[i].SubGridId != 0)
                    {
                        SubBlocks[i].SubGridId = remapHelper.RemapEntityId(SubBlocks[i].SubGridId);
                    }
                }
            }
        }
        public virtual void Remap(IMyRemapHelper remapHelper)
        {
            if (EntityId != 0)
            {
                EntityId = remapHelper.RemapEntityId(EntityId);
            }

            if (SubBlocks != null)
            {
                for (int i = 0; i < SubBlocks.Length; ++i)
                {
                    if (SubBlocks[i].SubGridId != 0)
                    {
                        SubBlocks[i].SubGridId = remapHelper.RemapEntityId(SubBlocks[i].SubGridId);
                    }
                }
            }

            if (MultiBlockId != 0 && MultiBlockDefinition != null)
            {
                MultiBlockId = remapHelper.RemapGroupId("MultiBlockId", MultiBlockId);
            }
        }
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (RotorEntityId.HasValue && RotorEntityId != 0) RotorEntityId = remapHelper.RemapEntityId(RotorEntityId.Value);
     if (WeldedEntityId.HasValue && WeldedEntityId != 0) WeldedEntityId = remapHelper.RemapEntityId(WeldedEntityId.Value);
 }
        public virtual void Remap(IMyRemapHelper remapHelper)
        {
            if (EntityId != 0) EntityId = remapHelper.RemapEntityId(EntityId);

            if (SubBlocks != null)
            {
                for (int i=0; i<SubBlocks.Length; ++i)
                {
                    if (SubBlocks[i].SubGridId != 0)
                        SubBlocks[i].SubGridId = remapHelper.RemapEntityId(SubBlocks[i].SubGridId);
                }
            }
        }
 public override void Remap(IMyRemapHelper remapHelper)
 {
     BlockEntityId = remapHelper.RemapEntityId(BlockEntityId);
 }
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (ConnectedEntityId != 0) ConnectedEntityId = remapHelper.RemapEntityId(ConnectedEntityId);
 }
 /// <summary>
 /// Remaps this entity's entityId to a new value.
 /// If there are cross-referenced between different entities in this object builder, the remapHelper should be used to rememeber these
 /// references and retrieve them.
 /// </summary>
 public virtual void Remap(IMyRemapHelper remapHelper)
 {
     EntityId = remapHelper.RemapEntityId(EntityId);
 }
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (RotorEntityId != 0) RotorEntityId = remapHelper.RemapEntityId(RotorEntityId);
 }
 /// <summary>
 /// Remaps this entity's entityId to a new value.
 /// If there are cross-referenced between different entities in this object builder, the remapHelper should be used to rememeber these
 /// references and retrieve them.
 /// </summary>
 public virtual void Remap(IMyRemapHelper remapHelper)
 {
     EntityId = remapHelper.RemapEntityId(EntityId);
 }
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (PistonBlockId != 0) PistonBlockId = remapHelper.RemapEntityId(PistonBlockId);
 }
        public virtual void Remap(IMyRemapHelper remapHelper)
        {
            if (EntityId != 0)
                EntityId = remapHelper.RemapEntityId(EntityId);

            if (SubBlocks != null)
            {
                for (int i = 0; i < SubBlocks.Length; ++i)
                {
                    if (SubBlocks[i].SubGridId != 0)
                        SubBlocks[i].SubGridId = remapHelper.RemapEntityId(SubBlocks[i].SubGridId);
                }
            }

            if (MultiBlockId != 0 && MultiBlockDefinition != null)
                MultiBlockId = remapHelper.RemapGroupId("MultiBlockId", MultiBlockId);
        }
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (TopBlockId.HasValue && TopBlockId != 0) TopBlockId = remapHelper.RemapEntityId(TopBlockId.Value);
 }