Originally Posted by .Arco
Well here's a little need to know about definitions.
Bool: If something is defined as a bool, then it is a true or false statement.
Like public bool GWOn = false;
If its true then where ever it is coded GW will be on.
Byte:Anything defined as a byte is an unsigned 8-bit integer that can go from 0-255, like public byte Level = 0;
A character's level is defined as a byte so it can only go up to 255.
Int:Anything defined as an int is a signed 32-bit integer that can range anywhere from -2,147,483,648 to 2,147,483,647.
Long:Anything defined as a Long is a Signed 64-bit integer that can range anywhere from –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.
Sbyte: Anything defined as an sbyte is a Signed 8-bit integer that can range anywhere from -128 to 127.
Short: Anything defined as a short is a Signed 16-bit integer that can range anywhere from
-32,768 to 32,767.
Uint: Anything defined as a uint is a Unsigned 32-bit integer that can range anywhere from 0 to 4,294,967,295.
Ulong: Anything defined as a ulong is a Unsigned 64-bit integer that can range anywhere from 0 to 18,446,744,073,709,551,615.
A public static void is, (and I'm probably not explaining it right but this is how I view it.) an action.
Like say you have this in world.cs:
public static void Hello ()
{
Console.Writeline("Hello World");
}
Everytime you call the method,
World.Hello();
It is going to write Hello World on the console.
|