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);
     }
 }
예제 #2
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);
        }