Exemple #1
0
 public static bool Create(string playerName, int playerAge, out Noun noun2)
 {
     noun2 = new Noun
     {
         PlayerName = playerName,
         PlayerAge  = playerAge
     };
     if (noun2.PlayerName.Length == 0)
     {
         return(false);
     }
     if (noun2.playerAge == 0)
     {
         return(false);
     }
     return(true);
 }
Exemple #2
0
 public static ObjectStatus.RelativeSpeed GetSpeed(Noun noun)
 {
     return(noun.speed);
 }
Exemple #3
0
 public static ObjectStatus.ActiveState GetState(Noun noun)
 {
     return(noun.state);
 }
Exemple #4
0
 public static void Set(Noun noun, ObjectStatus.RelativeSpeed speed)
 {
     noun.speed = speed;
 }
Exemple #5
0
 public static void Set(Noun noun, ObjectStatus.ActiveState state)
 {
     noun.state = state;
 }