/[Sims3RigEditor]/trunk/gr2lib_typedefs/typedefs/GrannyDataTypeDefinition.cs
ViewVC logotype

Contents of /trunk/gr2lib_typedefs/typedefs/GrannyDataTypeDefinition.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 90 - (show annotations) (download)
Mon Aug 16 08:02:29 2010 UTC (9 years, 6 months ago) by william
File size: 1799 byte(s)
rename GrannyDataTypeDefinition and GrannyVertexAnnotationSet

1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4
5 namespace gr2lib.core.typedefs
6 {
7
8 public interface IGrannyDataTypeDefinition
9 {
10 granny_member_type Type { get; set; }
11 string Name { get; set; }
12 GrannyDataTypeDefinition ReferenceType { get; set; }
13 }
14
15 public class GrannyDataTypeDefinition : IGrannyDataTypeDefinition
16 {
17 public GrannyDataTypeDefinition()
18 {
19 this.init();
20 }
21 public GrannyDataTypeDefinition(granny_member_type Type)
22 {
23 this.init();
24 this.Type = Type;
25 }
26 public GrannyDataTypeDefinition(granny_member_type Type, string Name)
27 {
28 this.init();
29 this.Type = Type;
30 this.Name = Name;
31 }
32 public GrannyDataTypeDefinition(granny_member_type Type, string Name, GrannyDataTypeDefinition ReferenceType)
33 {
34 this.init();
35 this.Type = Type;
36 this.Name = Name;
37 this.ReferenceType = ReferenceType;
38 }
39
40 private void init()
41 {
42 this.Type = granny_member_type.GrannyOnePastLastMemberType;
43 this.Name = "";
44 this.ReferenceType = null;
45 }
46
47 #region IGrannyDataTypeDefinition Members
48 private granny_member_type _Type;
49 public granny_member_type Type { get { return _Type; } set { _Type = value; } }
50 private string _Name;
51 public string Name { get { return _Name; } set { _Name = value; } }
52 private GrannyDataTypeDefinition _ReferenceType;
53 public GrannyDataTypeDefinition ReferenceType { get { return _ReferenceType; } set { _ReferenceType = value; } }
54 #endregion
55 }
56 }

  ViewVC Help
Powered by ViewVC 1.1.22