예제 #1
0
 /// <summary>
 /// Add an attribute to a class
 /// </summary>
 /// <param name="classID">Identifier of a specific class</param>
 /// <param name="name">Name of the attribute to add</param>
 /// <param name="typeID">Identifier of the attribute type to add</param>
 /// <param name="visibility">Visibility of the attribute to add</param>
 public void AddClassAttribute(UInt32 classID, string name, UInt32 typeID, EntityFactory.VISIBILITY visibility)
 {
     entity_factory.FindDefinitionOfType <CorePackage.Entity.Type.ObjectType>(classID).AddAttribute(name, entity_factory.FindDefinitionOfType <CorePackage.Entity.DataType>(typeID), (CorePackage.Global.AccessMode)visibility);
 }
예제 #2
0
 /// <summary>
 /// Will declare an entity in a container with a specific name and visibility
 /// </summary>
 /// <param name="entity_type">Type of the entity to declare</param>
 /// <param name="containerID">Identifier of the container in which declare the entity</param>
 /// <param name="name">Name of the declared entity</param>
 /// <param name="visibility">Visibility of the declared entity</param>
 /// <returns>Identifier of the freshly declared entity</returns>
 public UInt32 Declare(EntityFactory.ENTITY entity_type, UInt32 containerID, string name, EntityFactory.VISIBILITY visibility)
 {
     return(entity_factory.Declare(entity_type, containerID, name, visibility));
 }
예제 #3
0
 /// <summary>
 /// Change an entity visibility declared in a specific container
 /// </summary>
 /// <param name="entity_type">Type of the entity to change visibility</param>
 /// <param name="containerID">Identifier of the container in which entity is declared</param>
 /// <param name="name">Name of the declared entity in the container</param>
 /// <param name="newVisi">New visibility of the declared entity</param>
 public void ChangeVisibility(UInt32 containerID, string name, EntityFactory.VISIBILITY newVisi)
 {
     entity_factory.ChangeVisibility(containerID, name, newVisi);
 }