//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using Articy.Unity; using Articy.Unity.Interfaces; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Articy.Touhou.GlobalVariables { [Articy.Unity.ArticyCodeGenerationHashAttribute(638222141002450560)] public class ArticyScriptFragments : BaseScriptFragments, ISerializationCallbackReceiver { #region Fields private System.Collections.Generic.Dictionary> Conditions = new System.Collections.Generic.Dictionary>(); private System.Collections.Generic.Dictionary> Instructions = new System.Collections.Generic.Dictionary>(); #endregion #region Unity serialization public override void OnBeforeSerialize() { } public override void OnAfterDeserialize() { Conditions = new System.Collections.Generic.Dictionary>(); Instructions = new System.Collections.Generic.Dictionary>(); } #endregion #region Script execution public override void CallInstruction(Articy.Unity.Interfaces.IGlobalVariables aGlobalVariables, uint aHandlerId, Articy.Unity.IBaseScriptMethodProvider aMethodProvider) { if ((Instructions.ContainsKey(aHandlerId) == false)) { return; } if ((aMethodProvider != null)) { aMethodProvider.IsCalledInForecast = aGlobalVariables.IsInShadowState; } Instructions[aHandlerId].Invoke(((ArticyGlobalVariables)(aGlobalVariables)), aMethodProvider); } public override bool CallCondition(Articy.Unity.Interfaces.IGlobalVariables aGlobalVariables, uint aHandlerId, Articy.Unity.IBaseScriptMethodProvider aMethodProvider) { if ((Conditions.ContainsKey(aHandlerId) == false)) { return true; } if ((aMethodProvider != null)) { aMethodProvider.IsCalledInForecast = aGlobalVariables.IsInShadowState; } return Conditions[aHandlerId].Invoke(((ArticyGlobalVariables)(aGlobalVariables)), aMethodProvider); } #endregion } }