void IExposeData.ExposeData(ObjectSerializer serializer)
 {
     serializer.DataField(ref _metabolismRate, "rate", 1);
 }
 void IExposeData.ExposeData(ObjectSerializer serializer)
 {
     serializer.DataField(this, x => x.SpriteSpecifier, "specifier", SpriteSpecifier.Invalid);
     serializer.DataField(this, x => x.Layer, "layer", 0);
 }
 public override void ExposeData(ObjectSerializer serializer)
 {
     base.ExposeData(serializer);
     serializer.DataField(ref _prototypes, "prototypes", null);
     serializer.DataField <uint>(ref _capacity, "capacity", 5);
 }
Beispiel #4
0
        public override void ExposeData(ObjectSerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(this, h => h.Heal, "heal", new Dictionary <DamageType, int>());
        }
Beispiel #5
0
 void IExposeData.ExposeData(ObjectSerializer serializer)
 {
     serializer.DataField(this, x => x.Offset, "offset", SnapGridOffset.Center);
     serializer.DataField(this, x => x.SouthRotation, "southRotation", false);
 }
 public override void ExposeData(ObjectSerializer serializer)
 {
     base.ExposeData(serializer);
     serializer.DataField(ref _soundCollectionName, "footstepSoundCollection", "");
 }
Beispiel #7
0
        public override void ExposeData(ObjectSerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(ref _contents, "contents", new List <PrototypeItemData>());
        }
Beispiel #8
0
        public override void ExposeData(ObjectSerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(this, b => b.NeedsGases, "needsGases", new Dictionary <Gas, float>());
            serializer.DataField(this, b => b.ProducesGases, "producesGases", new Dictionary <Gas, float>());
            serializer.DataField(this, b => b.DeficitGases, "deficitGases", new Dictionary <Gas, float>());
            serializer.DataField(this, b => b.MetabolismHeat, "metabolismHeat", 0);
            serializer.DataField(this, b => b.RadiatedHeat, "radiatedHeat", 0);
            serializer.DataField(this, b => b.SweatHeatRegulation, "sweatHeatRegulation", 0);
            serializer.DataField(this, b => b.ShiveringHeatRegulation, "shiveringHeatRegulation", 0);
            serializer.DataField(this, b => b.ImplicitHeatRegulation, "implicitHeatRegulation", 0);
            serializer.DataField(this, b => b.NormalBodyTemperature, "normalBodyTemperature", 0);
            serializer.DataField(this, b => b.ThermalRegulationTemperatureThreshold,
                                 "thermalRegulationTemperatureThreshold", 0);
            serializer.DataField(ref _suffocationDamage, "suffocationDamage", 1);
        }
 public override void ExposeData(ObjectSerializer serializer)
 {
     base.ExposeData(serializer);
     serializer.DataField(ref _boardPrototype, "board", string.Empty);
 }
Beispiel #10
0
 public override void ExposeData(ObjectSerializer serializer)
 {
     base.ExposeData(serializer);
     serializer.DataField(this, x => PressureResistance, "pressureResistance", 1f);
     serializer.DataField(this, x => MoveResist, "moveResist", 100f);
 }
        public override void ExposeData(ObjectSerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(ref refillAmmo, "refillAmmo", 5);
        }
 public override void ExposeData(ObjectSerializer serializer)
 {
     base.ExposeData(serializer);
     serializer.DataField(ref _allowedSlots, "allowedSlots", EquipmentSlotDefines.SlotFlags.MASK);
 }
        public override void ExposeData(ObjectSerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(this, x => x.Store, "store", string.Empty);
        }
 public override void ExposeData(ObjectSerializer serializer)
 {
     base.ExposeData(serializer);
     serializer.DataField(ref _tools, "tools", new List <ToolEntry>());
 }
Beispiel #15
0
 void IExposeData.ExposeData(ObjectSerializer serializer)
 {
     serializer.DataField(this, x => x.Amount, "amount", 1);
 }
 public override void ExposeData(ObjectSerializer serializer)
 {
     base.ExposeData(serializer);
     serializer.DataField(ref _toolComponentNeeded, "toolComponentNeeded", true);
 }
Beispiel #17
0
 public override void ExposeData(ObjectSerializer serializer)
 {
     base.ExposeData(serializer);
     serializer.DataField(this, x => x.RotateWhileAnchored, "rotateWhileAnchored", false);
 }
Beispiel #18
0
 public override void ExposeData(ObjectSerializer serializer)
 {
     base.ExposeData(serializer);
     serializer.DataField(ref _startingIdCard, "idCard", "AssistantIDCard");
 }
 private void ExposeData(ObjectSerializer serializer)
 {
     serializer.DataField(this, x => x.ID, "id", "");
 }
Beispiel #20
0
        /// <summary>
        /// Shows the serializer how to save/load this components yaml prototype.
        /// </summary>
        /// <param name="serializer">Yaml serializer</param>
        public override void ExposeData(ObjectSerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(ref _packPrototypeId, "pack", string.Empty);
        }
Beispiel #21
0
        public override void ExposeData(ObjectSerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(ref _equippedPrefix, "HeldPrefix", null);
        }
Beispiel #22
0
        public override void ExposeData(ObjectSerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(this, x => x.Location, "location", null);
        }
 void IExposeData.ExposeData(ObjectSerializer serializer)
 {
     serializer.DataField(ref _metabolismRate, "rate", 1);
     serializer.DataField(ref _nutritionFactor, "nutrimentFactor", 30.0f);
 }
 void IExposeData.ExposeData(ObjectSerializer serializer)
 {
     serializer.DataField(ref _amount, "amount", ReagentUnit.New(1));
     serializer.DataField(ref _catalyst, "catalyst", false);
 }
        public override void ExposeData(ObjectSerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(ref _delay, "delay", 0f);
        }
 public override void ExposeData(ObjectSerializer serializer)
 {
     base.ExposeData(serializer);
     serializer.DataField(ref _catalystPrototype, "catalyst", "chem.H2O");
     serializer.DataField(ref _targetPrototype, "target", null);
 }
 void IExposeData.ExposeData(ObjectSerializer serializer)
 {
     serializer.DataField(this, x => x.Container, "container", string.Empty);
 }
        public override void ExposeData(ObjectSerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(ref _templateName, "Template", "HumanInventory");
        }
Beispiel #29
0
 public void ExposeData(ObjectSerializer serializer)
 {
     serializer.DataField(this, x => x.Container, "container", string.Empty);
     serializer.DataField(this, x => x.Text, "text", string.Empty);
 }
 public override void ExposeData(ObjectSerializer serializer)
 {
     base.ExposeData(serializer);
     serializer.DataField(ref _transferAmount, "transferAmount", ReagentUnit.New(0.5));
 }