コード例 #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);
     }
 }
コード例 #3
0
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (RotorEntityId != 0)
     {
         RotorEntityId = remapHelper.RemapEntityId(RotorEntityId);
     }
 }
コード例 #4
0
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (TopBlockId.HasValue && TopBlockId != 0)
     {
         TopBlockId = remapHelper.RemapEntityId(TopBlockId.Value);
     }
 }
コード例 #5
0
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (PistonBlockId != 0)
     {
         PistonBlockId = remapHelper.RemapEntityId(PistonBlockId);
     }
 }
コード例 #6
0
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (ConnectedEntityId != 0)
     {
         ConnectedEntityId = remapHelper.RemapEntityId(ConnectedEntityId);
     }
 }
コード例 #7
0
        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);
                    }
                }
            }
        }
コード例 #8
0
        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);
            }
        }
コード例 #9
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);
 }
コード例 #10
0
        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);
                }
            }
        }
コード例 #11
0
 public override void Remap(IMyRemapHelper remapHelper)
 {
     BlockEntityId = remapHelper.RemapEntityId(BlockEntityId);
 }
コード例 #12
0
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (ConnectedEntityId != 0) ConnectedEntityId = remapHelper.RemapEntityId(ConnectedEntityId);
 }
コード例 #13
0
 /// <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);
 }
コード例 #14
0
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (RotorEntityId != 0) RotorEntityId = remapHelper.RemapEntityId(RotorEntityId);
 }
コード例 #15
0
 /// <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);
 }
コード例 #16
0
 public override void Remap(IMyRemapHelper remapHelper)
 {
     base.Remap(remapHelper);
     if (PistonBlockId != 0) PistonBlockId = remapHelper.RemapEntityId(PistonBlockId);
 }
コード例 #17
0
        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);
 }