Beispiel #1
0
        public static bool TryLoadSpaceInstance(uint SpaceId)
        {
            if (GetInstanceBySpaceId(SpaceId) != null)
            {
                return(false);
            }
            uint          instanceId = GenerateInstanceId();
            SpaceInstance instance2  = SpaceInstance.TryCreateSpaceInstance(instanceId, SpaceId);

            if (instance2 == null)
            {
                return(false);
            }
            concurrentDictionary_0.TryAdd(instanceId, instance2);
            Output.WriteLine(string.Concat(new object[] { "[SpaceMgr] Space instance #", instanceId, " has been loaded for area #", SpaceId, "." }), OutputLevel.DebugInformation);
            return(true);
        }