public bool Preload(TextAsset asset, UnityEngine.MonoBehaviour mono, Action <IConfigVoMap <K1> > onEnd, Action <float> onProcess) { if (asset == null || mono == null) { return(false); } if (m_Map == null) { m_Map = new Dictionary <K1, Dictionary <K2, V> >(); } else { m_Map.Clear(); } ConfigDictionary.PreloadWrap <K1, K2, V>(m_Map, asset, mono, out m_IsJson, (IDictionary maps) => { IConfigVoMap <K1> ret = maps != null ? this : null; if (onEnd != null) { onEnd(ret); } }, onProcess); return(true); }
private void OnReadEnd(IConfigVoMap<string> map) { float delta = Time.realtimeSinceStartup - m_StartTime; Debug.LogFormat("异步读取完成消耗:{0}", delta.ToString()); AndroidJavaClass testClass = new AndroidJavaClass("abc"); testClass.CallStatic("GSDKSaveFps", new object[] { "", -1, -1, -1, -1, -1, -1, -1, "-1" }); }
public bool Preload(byte[] buffer, UnityEngine.MonoBehaviour mono, Action <IConfigVoMap <K> > onEnd, Action <float> onProcess) { if (buffer == null || mono == null) { return(false); } if (m_Map == null) { m_Map = new Dictionary <K, V>(); } else { m_Map.Clear(); } ConfigDictionary.PreloadWrap <K, V>(m_Map, buffer, mono, out m_IsJson, (IDictionary maps) => { IConfigVoMap <K> ret = maps != null ? this : null; if (onEnd != null) { onEnd(ret); } }, onProcess); return(true); }
public bool ThreadPreload(byte[] buffer, Action <IConfigVoMap <K1> > onEnd, Action <float> onProcess) { if (buffer == null || buffer.Length <= 0) { return(false); } if (m_Map == null) { m_Map = new Dictionary <K1, Dictionary <K2, V> >(); } else { m_Map.Clear(); } ConfigDictionary.ThreadPreloadWrap <K1, K2, V>(m_Map, buffer, (IDictionary maps) => { IConfigVoMap <K1> ret = maps != null ? this : null; if (onEnd != null) { onEnd(ret); } }, onProcess); return(true); }
public bool Preload(byte[] buffer, UnityEngine.MonoBehaviour mono, Action <IConfigVoMap <K1> > onEnd, Action <float> onProcess) { if (buffer == null || mono == null || buffer.Length <= 0) { return(false); } ConfigDictionary.PreloadWrap <K1, K2, V>(ref m_Map, buffer, mono, (IDictionary maps) => { IConfigVoMap <K1> ret = maps != null ? this : null; if (onEnd != null) { onEnd(ret); } }, onProcess); return(true); }
public bool ThreadPreload(byte[] buffer, Action <IConfigVoMap <K> > onEnd, Action <float> onProcess) { if (buffer == null) { return(false); } ConfigDictionary.ThreadPreloadWrap <K, V>(ref m_Map, buffer, (IDictionary maps) => { IConfigVoMap <K> ret = maps != null ? this : null; if (onEnd != null) { onEnd(ret); } }, onProcess); return(true); }
public bool Preload(TextAsset asset, UnityEngine.MonoBehaviour mono, Action <IConfigVoMap <K> > onEnd, Action <float> onProcess = null) { if (asset == null || mono == null) { return(false); } ConfigDictionary.PreloadWrap <K, V>(ref m_Map, asset, mono, (IDictionary maps) => { IConfigVoMap <K> ret = maps != null ? this : null; if (onEnd != null) { onEnd(ret); } }, onProcess); return(true); }
private void OnReadEnd(IConfigVoMap <string> map) { float delta = Time.realtimeSinceStartup - m_StartTime; Debug.LogFormat("异步读取完成消耗:{0}", delta.ToString()); }