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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 84 - (show annotations) (download)
Sat Aug 14 20:21:40 2010 UTC (9 years, 6 months ago) by william
File size: 1835 byte(s)
Add Support for:
** Only displaying the Granny2 Properties that are needed (don't show things that don't exist in the rig file)
** Add initial class for VertexData (currently unimplemented)

1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4
5 namespace gr2lib.core.typedefs
6 {
7
8 public interface IGranny_Data_Type_Definition
9 {
10 granny_member_type Type { get; set; }
11 string Name { get; set; }
12 Granny_Data_Type_Definition ReferenceType { get; set; }
13 }
14
15 public class Granny_Data_Type_Definition : IGranny_Data_Type_Definition
16 {
17 public Granny_Data_Type_Definition()
18 {
19 this.init();
20 }
21 public Granny_Data_Type_Definition(granny_member_type Type)
22 {
23 this.init();
24 this.Type = Type;
25 }
26 public Granny_Data_Type_Definition(granny_member_type Type, string Name)
27 {
28 this.init();
29 this.Type = Type;
30 this.Name = Name;
31 }
32 public Granny_Data_Type_Definition(granny_member_type Type, string Name, Granny_Data_Type_Definition 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 IGranny_Data_Type_Definition 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 Granny_Data_Type_Definition _ReferenceType;
53 public Granny_Data_Type_Definition ReferenceType { get { return _ReferenceType; } set { _ReferenceType = value; } }
54 #endregion
55 }
56 }

  ViewVC Help
Powered by ViewVC 1.1.22