/// <summary> /// Initializes the object to default values. /// </summary> public void Initialize() { _id = 0; _schema = null; _name = ""; _props = new Dictionary <int, GameObjectProperty>(); }
/// <summary> /// Instantiates a name game object using the specified game object /// schema and a name. The game object cannot be saved until all /// required properties specified in the schema have been populated. /// </summary> /// <param name="Schema">The schema object providing the framework for /// this game object.</param> /// <param name="Name">The name of the new game object.</param> public GameObject(GameObjectSchema Schema, string Name) { Initialize(); _schema = Schema; this.Name = Name; }
/// <summary> /// Instantiates a new game object using the specified game object /// schema. The game object cannot be saved until all required /// properties specified in the schema have been populated. /// </summary> /// <param name="Schema">The schema object providing the framework for /// this game object.</param> public GameObject(GameObjectSchema Schema) { Initialize(); _schema = Schema; }