protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (UnityEngine.UI.Image)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "m_Sprite": reader.SetPrivateField("m_Sprite", reader.Read <UnityEngine.Sprite>(), instance); break; case "m_Color": reader.SetPrivateField("m_Color", reader.Read <UnityEngine.Color>(), instance); break; case "sprite": instance.sprite = reader.Read <UnityEngine.Sprite>(ES3Type_Sprite.Instance); break; case "color": instance.color = reader.Read <UnityEngine.Color>(ES3Type_Color.Instance); break; default: reader.Skip(); break; } } }
protected override void ReadScriptableObject <T>(ES3Reader reader, object obj) { var instance = (LevelSaveData)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "Level_ID": instance.Level_ID = reader.Read <System.String>(ES3Type_string.Instance); break; case "topScore": reader.SetPrivateField("topScore", reader.Read <System.Int32>(), instance); break; case "topTime": reader.SetPrivateField("topTime", reader.Read <System.Single>(), instance); break; case "goalChecks": reader.SetPrivateField("goalChecks", reader.Read <System.Boolean[]>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (DialogPanel)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "dialogText": reader.SetPrivateField("dialogText", reader.Read <UnityEngine.UI.Text>(), instance); break; case "dialogPanel": reader.SetPrivateField("dialogPanel", reader.Read <UnityEngine.GameObject>(), instance); break; case "dialog": reader.SetPrivateField("dialog", reader.Read <System.String[]>(), instance); break; case "dialogIndex": reader.SetPrivateField("dialogIndex", reader.Read <System.Int32>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (Player)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "body": reader.SetPrivateField("body", reader.Read <UnityEngine.Rigidbody2D>(), instance); break; case "sprite": reader.SetPrivateField("sprite", reader.Read <UnityEngine.SpriteRenderer>(), instance); break; case "colliding": reader.SetPrivateField("colliding", reader.Read <System.Boolean>(), instance); break; case "animator": reader.SetPrivateField("animator", reader.Read <UnityEngine.Animator>(), instance); break; case "IsMoving": instance.IsMoving = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; default: reader.Skip(); break; } } }
protected override void ReadObject <T>(ES3Reader reader, object obj) { var instance = (System.Random)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "inext": reader.SetPrivateField("inext", reader.Read <System.Int32>(), instance); break; case "inextp": reader.SetPrivateField("inextp", reader.Read <System.Int32>(), instance); break; case "SeedArray": reader.SetPrivateField("SeedArray", reader.Read <System.Int32[]>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (Character)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "body": reader.SetPrivateField("body", reader.Read <UnityEngine.Rigidbody2D>(), instance); break; case "movementSpeed": reader.SetPrivateField("movementSpeed", reader.Read <System.Single>(), instance); break; case "sprite": reader.SetPrivateField("sprite", reader.Read <UnityEngine.SpriteRenderer>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (Ling.AI.Move.AINormalTracking)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "_destination": reader.SetPrivateField("_destination", reader.Read <Utility.ValueObject <UnityEngine.Vector2Int> >(), instance); break; case "_destinationRoutes": reader.SetPrivateField("_destinationRoutes", reader.Read <System.Collections.Generic.List <UnityEngine.Vector2Int> >(), instance); break; case "_nextMovePos": reader.SetPrivateField("_nextMovePos", reader.Read <Utility.ValueObject <UnityEngine.Vector2Int> >(), instance); break; case "_prevPos": reader.SetPrivateField("_prevPos", reader.Read <Utility.ValueObject <UnityEngine.Vector2Int> >(), instance); break; case "_waitCount": reader.SetPrivateField("_waitCount", reader.Read <System.Int32>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (DraggableComponent)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "<FollowCursor>k__BackingField": reader.SetPrivateField("<FollowCursor>k__BackingField", reader.Read <System.Boolean>(), instance); break; case "StartPosition": instance.StartPosition = reader.Read <UnityEngine.Vector3>(ES3Type_Vector3.Instance); break; case "<CanDrag>k__BackingField": reader.SetPrivateField("<CanDrag>k__BackingField", reader.Read <System.Boolean>(), instance); break; case "rectTransform": reader.SetPrivateField("rectTransform", reader.Read <UnityEngine.RectTransform>(), instance); break; case "canvas": reader.SetPrivateField("canvas", reader.Read <UnityEngine.Canvas>(), instance); break; case "mineblock": reader.SetPrivateField("mineblock", reader.Read <MineBlock>(), instance); break; case "FollowCursor": instance.FollowCursor = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "CanDrag": instance.CanDrag = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "enabled": instance.enabled = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; default: reader.Skip(); break; } } }
protected override void ReadScriptableObject <T>(ES3Reader reader, object obj) { var instance = (HK.AutoAnt.CellControllers.Events.Road)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "size": reader.SetPrivateField("size", reader.Read <System.Int32>(), instance); break; case "Level": instance.Level = reader.Read <System.Int32>(ES3Type_int.Instance); break; case "Origin": reader.SetPrivateProperty("Origin", reader.Read <UnityEngine.Vector2Int>(), instance); break; case "name": instance.name = reader.Read <System.String>(ES3Type_string.Instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (BattleSystem.Ability)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "abilityName": instance.abilityName = reader.Read <System.String>(ES3Type_string.Instance); break; case "power": instance.power = reader.Read <System.Int32>(ES3Type_int.Instance); break; case "energyCost": instance.energyCost = reader.Read <System.Int32>(ES3Type_int.Instance); break; case "abilityType": instance.abilityType = reader.Read <BattleSystem.Ability.AbilityType>(); break; case "targetPosition": reader.SetPrivateField("targetPosition", reader.Read <UnityEngine.Vector3>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadObject <T>(ES3Reader reader, object obj) { var instance = (Assets.Scripts.Abilities.Intimidate)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "_fearTiles": reader.SetPrivateField("_fearTiles", reader.Read <System.Collections.Generic.List <Assets.Scripts.Combat.Tile> >(), instance); break; case "<Name>k__BackingField": reader.SetPrivateField("<Name>k__BackingField", reader.Read <System.String>(), instance); break; case "<Description>k__BackingField": reader.SetPrivateField("<Description>k__BackingField", reader.Read <System.String>(), instance); break; case "<ApCost>k__BackingField": reader.SetPrivateField("<ApCost>k__BackingField", reader.Read <System.Int32>(), instance); break; case "<Range>k__BackingField": reader.SetPrivateField("<Range>k__BackingField", reader.Read <System.Int32>(), instance); break; case "<TargetType>k__BackingField": reader.SetPrivateField("<TargetType>k__BackingField", reader.Read <Assets.Scripts.TargetType>(), instance); break; case "<IsPassive>k__BackingField": reader.SetPrivateField("<IsPassive>k__BackingField", reader.Read <System.Boolean>(), instance); break; case "<Icon>k__BackingField": reader.SetPrivateField("<Icon>k__BackingField", reader.Read <UnityEngine.Sprite>(), instance); break; case "<UsesEquipment>k__BackingField": reader.SetPrivateField("<UsesEquipment>k__BackingField", reader.Read <System.Boolean>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadObject <T>(ES3Reader reader, object obj) { var instance = (Assets.Scripts.Abilities.EndangeredEndurance)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "_savedFromDeath": reader.SetPrivateField("_savedFromDeath", reader.Read <System.Boolean>(), instance); break; case "<Name>k__BackingField": reader.SetPrivateField("<Name>k__BackingField", reader.Read <System.String>(), instance); break; case "<Description>k__BackingField": reader.SetPrivateField("<Description>k__BackingField", reader.Read <System.String>(), instance); break; case "<ApCost>k__BackingField": reader.SetPrivateField("<ApCost>k__BackingField", reader.Read <System.Int32>(), instance); break; case "<Range>k__BackingField": reader.SetPrivateField("<Range>k__BackingField", reader.Read <System.Int32>(), instance); break; case "<TargetType>k__BackingField": reader.SetPrivateField("<TargetType>k__BackingField", reader.Read <Assets.Scripts.TargetType>(), instance); break; case "<IsPassive>k__BackingField": reader.SetPrivateField("<IsPassive>k__BackingField", reader.Read <System.Boolean>(), instance); break; case "<Icon>k__BackingField": reader.SetPrivateField("<Icon>k__BackingField", reader.Read <UnityEngine.Sprite>(), instance); break; case "<UsesEquipment>k__BackingField": reader.SetPrivateField("<UsesEquipment>k__BackingField", reader.Read <System.Boolean>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (GameProperties)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "currentPlayerSprite": reader.SetPrivateField("currentPlayerSprite", reader.Read <UnityEngine.Sprite>(), instance); break; case "totalMoney": reader.SetPrivateField("totalMoney", reader.Read <System.Int32>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadObject <T>(ES3Reader reader, object obj) { var instance = (HK.AutoAnt.SaveData.Serializables.SerializableOption)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "<BGMVolume>k__BackingField": reader.SetPrivateField("<BGMVolume>k__BackingField", reader.Read <System.Single>(), instance); break; case "<SEVolume>k__BackingField": reader.SetPrivateField("<SEVolume>k__BackingField", reader.Read <System.Single>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (Ling.Chara.PlayerControl)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "_model": reader.SetPrivateField("_model", reader.Read <Ling.Chara.PlayerModel>(), instance); break; case "_view": reader.SetPrivateField("_view", reader.Read <Ling.Chara.PlayerView>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (ShowTooltip)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "tooltip": reader.SetPrivateField("tooltip", reader.Read <Tooltip>(), instance); break; case "thisTooltipString": reader.SetPrivateField("thisTooltipString", reader.Read <System.String>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadObject <T>(ES3Reader reader, object obj) { var instance = (HK.AutoAnt.UserControllers.History)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "game": reader.SetPrivateField("game", reader.Read <HK.AutoAnt.UserControllers.GameHistory>(), instance); break; case "generateCellEvent": reader.SetPrivateField("generateCellEvent", reader.Read <HK.AutoAnt.UserControllers.GenerateCellEventHistory>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadObject <T>(ES3Reader reader, object obj) { var instance = (HK.AutoAnt.UserControllers.UnlockCellBundle)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "nextPopulation": reader.SetPrivateField("nextPopulation", reader.Read <System.Double>(), instance); break; case "targetRecordIds": reader.SetPrivateField("targetRecordIds", reader.Read <System.Collections.Generic.List <System.Int32> >(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadObject <T>(ES3Reader reader, object obj) { var instance = (System.Collections.Hashtable)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "keys": reader.SetPrivateField("keys", reader.Read <System.Collections.ICollection>(), instance); break; case "values": reader.SetPrivateField("values", reader.Read <System.Collections.ICollection>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (Link)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "firstConnexion": reader.SetPrivateField("firstConnexion", reader.Read <Connexion>(), instance); break; case "secondConnexion": reader.SetPrivateField("secondConnexion", reader.Read <Connexion>(), instance); break; case "anchor1": reader.SetPrivateField("anchor1", reader.Read <UnityEngine.Transform>(), instance); break; case "anchor2": reader.SetPrivateField("anchor2", reader.Read <UnityEngine.Transform>(), instance); break; case "typelink": reader.SetPrivateField("typelink", reader.Read <TypeLink>(), instance); break; case "enabled": instance.enabled = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; default: reader.Skip(); break; } } instance.Init(); }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (Ling.Chara.EnemyModel)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "_cellPosition": reader.SetPrivateField("_cellPosition", reader.Read <Ling.Common.ReactiveProperty.Vector2IntReactiveProperty>(), instance); break; case "_param": reader.SetPrivateField("_param", reader.Read <Ling.Chara.CharaModel.Param>(), instance); break; case "Type": reader.SetPrivateProperty("Type", reader.Read <Ling.Const.EnemyType>(), instance); break; case "Status": reader.SetPrivateProperty("Status", reader.Read <Ling.Chara.CharaStatus>(), instance); break; case "CellIndex": reader.SetPrivateProperty("CellIndex", reader.Read <System.Int32>(), instance); break; case "Dir": reader.SetPrivateProperty("Dir", reader.Read <Ling.Common.ReactiveProperty.Vector2IntReactiveProperty>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (BatterieElec)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "quantiteElectricite": reader.SetPrivateField("quantiteElectricite", reader.Read <System.Single>(), instance); break; case "canRecharge": reader.SetPrivateField("canRecharge", reader.Read <System.Boolean>(), instance); break; case "canConsume": reader.SetPrivateField("canConsume", reader.Read <System.Boolean>(), instance); break; case "reseauMaitre": instance.reseauMaitre = reader.Read <ReseauElec>(ES3Type_ReseauElec.Instance); break; case "ON_OffElec": instance.ON_OffElec = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "Fonctionnel": instance.Fonctionnel = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (ReseauElec)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "generateurElecs": reader.SetPrivateField("generateurElecs", reader.Read <System.Collections.Generic.List <GenerateurElec> >(), instance); break; case "consoElecs": reader.SetPrivateField("consoElecs", reader.Read <System.Collections.Generic.List <ConsoElec> >(), instance); break; case "batteries": reader.SetPrivateField("batteries", reader.Read <System.Collections.Generic.List <BatterieElec> >(), instance); break; case "allEngins": reader.SetPrivateField("allEngins", reader.Read <System.Collections.Generic.List <EnginElec> >(), instance); break; case "actif": instance.actif = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "etatFonctionnementReseau": reader.SetPrivateField("etatFonctionnementReseau", reader.Read <System.Boolean>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (BlockHealth)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "blockHealth": reader.SetPrivateField("blockHealth", reader.Read <System.Int32>(), instance); break; case "blockPower": reader.SetPrivateField("blockPower", reader.Read <System.Int32>(), instance); break; case "mineBlock": reader.SetPrivateField("mineBlock", reader.Read <MineBlock>(), instance); break; case "mineDirtSFX": reader.SetPrivateField("mineDirtSFX", reader.Read <UnityEngine.AudioClip>(), instance); break; case "metalClankSFX": reader.SetPrivateField("metalClankSFX", reader.Read <UnityEngine.AudioClip>(), instance); break; case "enabled": instance.enabled = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (NPC)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "movementDirections": reader.SetPrivateField("movementDirections", reader.Read <UnityEngine.Vector2[]>(), instance); break; case "spawnPosition": reader.SetPrivateField("spawnPosition", reader.Read <UnityEngine.Vector2>(), instance); break; case "wander": reader.SetPrivateField("wander", reader.Read <System.Boolean>(), instance); break; case "questName": reader.SetPrivateField("questName", reader.Read <System.String>(), instance); break; case "quest": reader.SetPrivateField("quest", reader.Read <QuestSystem.Quest>(), instance); break; case "dialogData": reader.SetPrivateField("dialogData", reader.Read <DialogData>(), instance); break; case "questCompletedDialogData": reader.SetPrivateField("questCompletedDialogData", reader.Read <DialogData>(), instance); break; case "dialog": reader.SetPrivateField("dialog", reader.Read <DialogPanel>(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (EnemyMovement)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "moveSpeed": reader.SetPrivateField("moveSpeed", reader.Read <System.Single>(), instance); break; case "rb": reader.SetPrivateField("rb", reader.Read <UnityEngine.Rigidbody2D>(), instance); break; case "isGrounded": instance.isGrounded = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; case "player": reader.SetPrivateField("player", reader.Read <PlayerMovement>(), instance); break; case "knockback": reader.SetPrivateField("knockback", reader.Read <UnityEngine.Vector2>(), instance); break; case "health": reader.SetPrivateField("health", reader.Read <Netherforge.Combat.Health>(), instance); break; case "verticalInt": reader.SetPrivateField("verticalInt", reader.Read <System.Int32>(), instance); break; case "attackFromEnemySFX": reader.SetPrivateField("attackFromEnemySFX", reader.Read <UnityEngine.AudioClip>(), instance); break; case "enabled": instance.enabled = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (Netherforge.Combat.Health)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "currentHealth": instance.currentHealth = reader.Read <System.Single>(ES3Type_float.Instance); break; case "rb": instance.rb = reader.Read <UnityEngine.Rigidbody2D>(); break; case "animator": instance.animator = reader.Read <UnityEngine.Animator>(); break; case "player": reader.SetPrivateField("player", reader.Read <PlayerMovement>(), instance); break; case "dirNum": reader.SetPrivateField("dirNum", reader.Read <System.Single>(), instance); break; case "enemy": reader.SetPrivateField("enemy", reader.Read <EnemyMovement>(), instance); break; case "startingPlayerPosition": reader.SetPrivateField("startingPlayerPosition", reader.Read <UnityEngine.Vector2>(), instance); break; case "playerTakeDamageCD": reader.SetPrivateField("playerTakeDamageCD", reader.Read <System.Boolean>(), instance); break; case "hurtSFX": reader.SetPrivateField("hurtSFX", reader.Read <UnityEngine.AudioClip>(), instance); break; case "enabled": instance.enabled = reader.Read <System.Boolean>(ES3Type_bool.Instance); break; default: reader.Skip(); break; } } }
protected override void ReadObject <T>(ES3Reader reader, object obj) { var instance = (GoRogue.GameFramework.Map)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "_terrain": reader.SetPrivateField("_terrain", reader.Read <GoRogue.MapViews.ISettableMapView <GoRogue.GameFramework.IGameObject> >(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadComponent <T>(ES3Reader reader, object obj) { var instance = (Assets.Scripts.EventMediator)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "_eventSubscriptions": reader.SetPrivateField("_eventSubscriptions", reader.Read <System.Collections.Generic.Dictionary <System.String, System.Collections.Generic.List <Assets.Scripts.ISubscriber> > >(), instance); break; default: reader.Skip(); break; } } }
protected override void ReadObject <T>(ES3Reader reader, object obj) { var instance = (HK.AutoAnt.UserControllers.UnlockCellEvent)obj; foreach (string propertyName in reader.Properties) { switch (propertyName) { case "elements": reader.SetPrivateField("elements", reader.Read <System.Collections.Generic.List <System.Int32> >(), instance); break; default: reader.Skip(); break; } } }