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); }
public static ObjectStatus.RelativeSpeed GetSpeed(Noun noun) { return(noun.speed); }
public static ObjectStatus.ActiveState GetState(Noun noun) { return(noun.state); }
public static void Set(Noun noun, ObjectStatus.RelativeSpeed speed) { noun.speed = speed; }
public static void Set(Noun noun, ObjectStatus.ActiveState state) { noun.state = state; }