public static void MakeSureAllHandlerRegistered() { if (handlerReadFile == null) { handlerReadFile = DefaultReadFileProxy; } if (handlerFileExists == null) { handlerFileExists = DefaultFileExistsProxy; } }
//************************************************************************ // Note:此函数只供客户端使用, by lixiaojiang //************************************************************************ public static void RegisterReadFileHandler(delegate_ReadFile handler) { if (GlobalVariables.Instance.IsClient) { // Note:Client确保只拥有唯一的读取函数,即ScriptRuntime.Util.ReadFile(...), by lixiaojiang handlerReadFile = handler; } else { LogSystem.Debug("[Err] RegisterReadFileHandler only for Client."); } }
public static void RegisterReadFileHandler(delegate_ReadFile handler) { handlerReadFile = handler; }
public static void RegisterReadFileHandler(delegate_ReadFile hReadFile, delegate_FileExists hExists) { handlerReadFile = hReadFile; handlerFileExists = hExists; }