internal static bool C(string p) { TextBlock textBlock = TextBlockUtils.LoadFromVirtualFile(p); if (textBlock == null) { return(false); } Entities.Instance.Internal_InitUINOffset(); Map.Instance.virtualFileName = p; if (!Entities.Instance.Internal_LoadEntityTreeFromTextBlock(Map.Instance, textBlock, true, null)) { MapSystemWorld.MapDestroy(); return(false); } /* * if (EntitySystemWorld.Instance.WorldSimulationType != WorldSimulationTypes.Editor) * { * Map.Instance.GetDataForEditor().ClearAll(); * } * //*/ return(true); }
internal static void A(string text, Type type, Type type2, Type type3, string text2) { Trace.Assert(MapSystemWorld.B(text) == null, "GetMapObjectAttachedObjectClassByTextBlockName( textBlockName ) == null"); MapSystemWorld.MapObjectAttachedObjectClassItem item = new MapSystemWorld.MapObjectAttachedObjectClassItem(text, type, type2, type3, text2); MapSystemWorld.mapObjectAttachedObjectClasses.Add(item); }