protected override void WriteProperties(INeoSerializer writer, CompassProPOI from, NeoSerializedGameObject nsgo)
        {
            Debug.Log("Saving POI");

            writer.WriteValue(k_VisitedKey, from.isVisited);
            writer.WriteValue(k_HeartbeatKey, from.heartbeatIsActive);
        }
        public void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
        {
            writer.WriteValue(k_VelocityKey, m_Velocity);
            writer.WriteValue(k_LayersKey, m_Layers);
            writer.WriteValue(k_ReleaseKey, m_Release);
            writer.WriteValue(k_DistanceKey, m_Distance);
            writer.WriteValue(k_PositionKey, m_LerpToPosition);

            writer.WriteComponentReference(k_AmmoEffectKey, m_AmmoEffect, nsgo);
            writer.WriteComponentReference(k_DamageSourceKey, m_DamageSource, nsgo);
        }
Beispiel #3
0
        protected override void WriteProperties(INeoSerializer writer, EmeraldAISystem from, NeoSerializedGameObject nsgo)
        {
            writer.WriteValue(k_CurrentHealthKey, from.CurrentHealth);
            writer.WriteValue(k_CurrentDamageKey, from.CurrentDamageAmount);
            writer.WriteValue(k_CurrentAggroHitsKey, from.CurrentAggroHits);
            writer.WriteValue(k_IsDeadKey, from.IsDead);

            if (from.ActiveEffects.Count > 0)
            {
                writer.WriteValues(k_ActiveEffectsKey, from.ActiveEffects);
            }

            writer.WriteTransformReference(k_CurrentTargetKey, from.CurrentTarget, nsgo);
            writer.WriteTransformReference(k_CurrentFollowKey, from.CurrentFollowTarget, nsgo);
        }
 protected override void WriteProperties(INeoSerializer writer, CompassPro from, NeoSerializedGameObject nsgo)
 {
     if (from.fogOfWarEnabled)
     {
         writer.WriteValue(k_FogSizeKey, from.fogOfWarTextureSize);
         writer.WriteValues(k_FogDataKey, from.fogOfWarTextureData);
     }
 }
Beispiel #5
0
 public override void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
 {
     base.WriteProperties(writer, nsgo, saveMode);
     writer.WriteValue(k_LayersKey, m_Layers);
 }
Beispiel #6
0
 /// INeoSerializableComponent Implenation
 public virtual void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
 {
     writer.WriteValue(k_HealthMaxKey, healthMax);
     writer.WriteValue(k_HealthKey, health);
     writer.WriteValue(k_IsAliveKey, isAlive);
 }
Beispiel #7
0
 public void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
 {
     writer.WriteValue(k_PoiIndexKey, poiNumber);
 }