protected override void SetBlock(SuperBlock block, TBlockSubtypes subtypeId, bool addSubtype = true) { this.block = block; subtype = block.TBlock as T; this.SubtypeId = subtypeId; if (addSubtype && subtype != null) { block.SubtypeId |= subtypeId; block.subtypeAccessors.Add(this); } }
public override void SetBlock(SuperBlock block) { base.SetBlock(block, TBlockSubtypes.GunBase); if (subtype != null) { ammoTypes.Clear(); (subtype.AmmoInventory as IMyInventory).GetAcceptedItems(ammoTypes); AmmoName.Clear(); TerminalUtilities.GetBeautifiedTypeID(AmmoTypes[0].SubtypeId, AmmoName); } }
public override void SetBlock(SuperBlock block) { base.SetBlock(block, TBlockSubtypes.Inventory, block.TBlock.HasInventory); if (block.TBlock.HasInventory) { inventories.Clear(); inventories.EnsureCapacity(InventoryCount); for (int n = 0; n < InventoryCount; n++) { inventories.Add(new InventoryWrapper(block.TBlock.GetInventory(n))); } } }
public override void SetBlock(SuperBlock block) { base.SetBlock(block, TBlockSubtypes.Timer); }
public override void SetBlock(SuperBlock block) { base.SetBlock(block, TBlockSubtypes.GasTank); }
protected virtual void SetBlock(SuperBlock block, TBlockSubtypes subtypeId, TBlockSubtypes prerequsites) => SetBlock(block, subtypeId, block.SubtypeId.UsesSubtype(prerequsites));
public override void SetBlock(SuperBlock block) { base.SetBlock(block, TBlockSubtypes.JumpDrive); }
public override void SetBlock(SuperBlock block) { base.SetBlock(block, TBlockSubtypes.Gyroscope); }
public override void SetBlock(SuperBlock block) { base.SetBlock(block, TBlockSubtypes.Rotor, TBlockSubtypes.MechanicalConnection); }
public override void SetBlock(SuperBlock block) { base.SetBlock(block, TBlockSubtypes.Warhead); }
public override void SetBlock(SuperBlock block) { base.SetBlock(block, TBlockSubtypes.LandingGear); }
public override void SetBlock(SuperBlock block) { base.SetBlock(block, TBlockSubtypes.AirVent); }
public override void SetBlock(SuperBlock block) { base.SetBlock(block, TBlockSubtypes.Programmable); }
public override void SetBlock(SuperBlock block) { base.SetBlock(block, TBlockSubtypes.Connector); }
public abstract void SetBlock(SuperBlock block);
public override void SetBlock(SuperBlock block) { base.SetBlock(block, TBlockSubtypes.Battery); }
public virtual void Reset() { SubtypeId = TBlockSubtypes.None; block = null; }
public override void SetBlock(SuperBlock block) { base.SetBlock(block, TBlockSubtypes.LaserAntenna); }
public override void SetBlock(SuperBlock block) { base.SetBlock(block, TBlockSubtypes.Production); }