Пример #1
0
        private SerializationModel.ObjectType GetObjectTypeFrom(ObjectType definition)
        {
            var attrs = new Dictionary <string, UInt32>();

            foreach (KeyValuePair <string, CorePackage.Global.IDefinition> attr in definition.GetAttributes())
            {
                attrs.Add(attr.Key, Factory.GetEntityID(attr.Value));
            }

            return(new SerializationModel.ObjectType
            {
                Children = GetIdsList(definition.GetEntities().Values),
                Attributes = attrs
            });
        }