Quote:
Originally Posted by ArtOfWar
Hes trying to learn to code in c# so he should do some enums, bools, definitions, encryptions and stuff o.o
|
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.
Ushort: Anything defined as a ushort is an Unsigned 16-bit integer that can range anywhere from 0 to 65,535.
More to come..