public override MyObjectBuilder_CubeBlock GetObjectBuilderCubeBlock(bool copy = false) { var builder = (MyObjectBuilder_MedicalRoom)base.GetObjectBuilderCubeBlock(copy); builder.SteamUserId = SteamUserId; builder.IdleSound = m_idleSound.ToString(); builder.ProgressSound = m_progressSound.ToString(); return(builder); }
public override MyObjectBuilder_CubeBlock GetObjectBuilderCubeBlock(bool copy = false) { var builder = (MyObjectBuilder_MedicalRoom)base.GetObjectBuilderCubeBlock(copy); builder.SteamUserId = SteamUserId; builder.IdleSound = m_idleSound.ToString(); builder.ProgressSound = m_progressSound.ToString(); builder.TakeOwnership = m_takeSpawneeOwnership; builder.SetFaction = m_setFactionToSpawnee; return(builder); }
public override MyObjectBuilder_CubeBlock GetObjectBuilderCubeBlock(bool copy = false) { var gear = (MyObjectBuilder_LandingGear)base.GetObjectBuilderCubeBlock(copy); gear.IsLocked = LockMode == LandingGearMode.Locked; gear.BrakeForce = ThresholdToRatio(BreakForce); gear.AutoLock = AutoLock; gear.LockSound = m_lockSound.ToString(); gear.UnlockSound = m_unlockSound.ToString(); gear.FailedAttachSound = m_failedAttachSound.ToString(); gear.AttachedEntityId = m_attachedEntityId; if (m_attachedEntityId.HasValue) { gear.MasterToSlave = m_attachedState.Value.MasterToSlave; gear.GearPivotPosition = m_attachedState.Value.GearPivotPosition; gear.OtherPivot = m_attachedState.Value.OtherPivot; } gear.LockMode = m_lockModeSync.Value; return(gear); }