Esempio n. 1
0
 public ProgrammableSpeakerAlertParameters Load(BinaryReader reader)
 {
     ShowAlert    = reader.ReadBoolean();
     ShowOnMap    = reader.ReadBoolean();
     IconSignalId = new SignalId(reader);
     AlertMessage = reader.ReadFactorioString();
     return(this);
 }
 public CircuitCondition Load(BinaryReader reader)
 {
     Comparator           = reader.ReadByte();
     FirstSignalId        = new SignalId(reader);
     SecondSignalId       = new SignalId(reader);
     SecondConstant       = reader.ReadInt32();
     SecondItemIsConstant = reader.ReadBoolean();
     return(this);
 }
Esempio n. 3
0
 public ChooseElemId Load(BinaryReader reader)
 {
     ItemId   = reader.ReadUInt16();
     EntityId = reader.ReadUInt16();
     TileId   = reader.ReadUInt16();
     FluidId  = reader.ReadUInt16();
     RecipeId = reader.ReadUInt16();
     SignalId = new SignalId(reader);
     return(this);
 }
Esempio n. 4
0
 public DeciderCombinatorParameters Load(BinaryReader reader)
 {
     FirstSignalId          = new SignalId(reader);
     SecondSignalId         = new SignalId(reader);
     OutputSignalId         = new SignalId(reader);
     SecondConstant         = reader.ReadInt32();
     Comparator             = reader.ReadByte();
     CopyCountFromInput     = reader.ReadBoolean();
     SecondSignalIsConstant = reader.ReadBoolean();
     return(this);
 }
 public ArithmeticCombinatorParameters Load(BinaryReader reader)
 {
     FirstSignalId          = new SignalId(reader);
     SecondSignalId         = new SignalId(reader);
     OutputSignalId         = new SignalId(reader);
     SecondConstant         = reader.ReadInt32();
     Operation              = reader.ReadByte();
     SecondSignalIsConstant = reader.ReadBoolean();
     FirstConstant          = reader.ReadInt32();
     FirstSignalIsConstant  = reader.ReadBoolean();
     return(this);
 }