Ramaraunt1

Untitled

Dec 21st, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. #region Gender Class
  5. public static class Gender
  6. {
  7. public static int male = 1;
  8. public static int female = 0;
  9. public static int genderless = 2;
  10.  
  11. public static string maleHeadModelName = "maleHead";
  12. //etc etc
  13. }
  14. #endregion
  15.  
  16. #region Skin Color Class
  17. public static class SkinColor
  18. {
  19. public static int Caucasian = 0;
  20. public static int Black = 1;
  21. public static int Brown = 2;
  22. public static int Arabian = 3;
  23. public static int Oriental = 4;
  24. public static int Pale = 5;
  25.  
  26. public static string caucasianMatName = "caucasianSkin";
  27. //etc etc
  28. }
  29. #endregion
  30.  
  31. #region Eye Color Class
  32. public static class EyeColor
  33. {
  34. public static int black = 0;
  35. public static int brown = 1;
  36. public static int blue = 2;
  37. public static int cyan = 3;
  38. public static int lightBrown = 4;
  39. public static int yellow = 5;
  40. public static int red = 6;
  41. public static int purple = 6;
  42. public static int orange = 8;
  43. public static int white = 9;
  44.  
  45. public static string blackNameMatName = "blackEyes";
  46. public static string brownNameMatName = "brownEyes";
  47. public static string blueNameMatName = "blueEyes";
  48. //etc etc
  49. }
  50. #endregion
  51.  
  52. #region Hair Color Class
  53. public static class HairColor
  54. {
  55. public static int white = 0;
  56. public static int red = 1;
  57. public static int black = 2;
  58. public static int blond = 3;
  59. public static int brown = 4;
  60. public static int lightBrown = 5;
  61. //etc etc
  62. }
  63. #endregion
  64.  
  65. #region Item Classes
  66. public static class EqupipableID
  67. {
  68. //to be filled with items
  69. }
  70.  
  71. public class Equipable
  72. {
  73. //this is for what slot the item is equipable in, if it is equpipable. These are the slots.
  74. /*
  75. * 0 = no slot/not equipable
  76. * 1 = right hand
  77. * 2 = left hand
  78. * 3 = ammo
  79. * 4 = feet
  80. * 5 = feet&legs
  81. * 6 = legs
  82. * 7 = torso
  83. * 8 = torso&arms
  84. * 9 = torso&legs&arms
  85. * 10 = arms
  86. * 11 = hands
  87. * 12 = hands&arms
  88. * 14 = head
  89. * 14 = finger
  90. * 15 = neck
  91. */
  92. public int slot;
  93.  
  94. //item id
  95. public int ID;
  96.  
  97. public int damageType;
  98.  
  99. //etc will finish later
  100. }
  101. #endregion
  102.  
  103.  
  104.  
  105. public class Person : MonoBehaviour {
  106.  
  107. //this is false to tell the game to setup the char
  108. private bool setupDone = false;
  109. private bool setupFailed = false;
  110.  
  111. //this is a value that increments with each new person in the current scene. it is used to differentiate between them.
  112. private static int personID_no = 0;
  113. private int personID;
  114.  
  115. //this is where the gender value is stored (call using Gender.male or Gender.female)
  116. private int gender;
  117.  
  118. //this is where the skin color is stored (call using SkinColor.Caucasian etc)
  119. private int skinColor;
  120.  
  121. //eye color (EyeColor.brown etc)
  122. private int eyeColor;
  123.  
  124. //hair color (HairColor.brown etc)
  125. private int hairColor;
  126.  
  127. //hair style (HairStyle.shaved etc)
  128. private int hairStyle;
  129.  
  130. //item slots
  131. private int[] slots = new int[16];
  132.  
  133. //start location
  134. private Vector3 startLocation;
  135.  
  136. /////////////////////////////////////////////////////////////////////////////
  137. //CONSTRUCTORS
  138. /////////////////////////////////////////////////////////////////////////////
  139.  
  140. public Person(int gender, int skinColor, int eyeColor, int hairColor, int hairStyle, int slot0, int slot1, int slot2, int slot3,
  141. int slot4, int slot5, int slot6, int slot7, int slot8, int slot9, int slot10, int slot11, int slot12, int slot13, int slot14, int slot15, Vector3 startLocation)
  142. {
  143. personID = personID_no;
  144. personID_no++;
  145.  
  146. this.gender = gender;
  147. this.skinColor = skinColor;
  148. this.eyeColor = eyeColor;
  149. this.hairColor = hairColor;
  150. this.hairStyle = hairStyle;
  151.  
  152. slots[0] = slot0;
  153. slots[1] = slot1;
  154. slots[2] = slot2;
  155. slots[3] = slot3;
  156. slots[4] = slot4;
  157. slots[5] = slot5;
  158. slots[6] = slot6;
  159. slots[7] = slot7;
  160. slots[8] = slot8;
  161. slots[9] = slot9;
  162. slots[10] = slot10;
  163. slots[11] = slot11;
  164. slots[12] = slot12;
  165. slots[13] = slot13;
  166. slots[14] = slot14;
  167. slots[15] = slot15;
  168.  
  169. this.startLocation = startLocation;
  170. setupFailed = buildPerson(this.startLocation, personID);
  171.  
  172. }
  173.  
  174. private bool buildPerson(Vector3 startLocation, int ID)
  175. {
  176. bool done = true;
  177. return done;
  178. }
  179. }
Advertisement
Add Comment
Please, Sign In to add comment