public LinkedGateBag( string name ) { LinkedGate gateA = new LinkedGate(); LinkedGate gateB = new LinkedGate(); gateA.MateGate = gateB; gateB.MateGate = gateA; gateA.Name = name; gateB.Name = name; DropItem( gateA ); DropItem( gateB ); }
public LinkedGateBag(string name) { LinkedGate gateA = new LinkedGate(); LinkedGate gateB = new LinkedGate(); gateA.MateGate = gateB; gateB.MateGate = gateA; gateA.Name = name; gateB.Name = name; DropItem(gateA); DropItem(gateB); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); switch (version) { case 2: { showWarning = reader.ReadBool(); goto case 1; } case 1: { mateGate = reader.ReadItem() as LinkedGate; break; } } }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); switch ( version ) { case 2: { showWarning = reader.ReadBool(); goto case 1; } case 1: { mateGate = reader.ReadItem() as LinkedGate; break; } } }