#define IS_GOOD(ch) (GET_ALIGNMENT(ch) >= 350)
/// <summary>
/// Returns whether a character is currently of a good alignment.
/// </summary>
/// <param name="ch"></param>
/// <returns></returns>
public bool is_good(Character ch)
{
return (ch.alignment >= 350);
}
if (ch.IsGood())
{
// Do something
}
public class CharData
{
int level;
public int Level
{
get { return level; }
set { level = value; }
}
}
CharData player;
if ( player.Level > 10 )
{
Debug.Log(player.Level);
}
public int Level
{
get { return level; }
set { level = value; }
}
public int Level { get; set; }
I'm trying to take DIKU-Gamma and convert it to use with an RPG designed in Unity, as a way to further my coding skills, and I've run up on a bit of a conundrum….
In the utils.h file, there are a bunch of utility macros, and I can't figure out how to convert them to C# methods. Any help would be greatly appreciated.