19 public static string fName =
"CrossbowWidget";
59 if ((draw < 15 || !arrowType.HasValue)
65 && MathF.Abs(num2) < 25f) {
72 if (
Input.Press.HasValue) {
104 public static int PositionToDraw(
float position) => (int)Math.Clamp(MathF.Round((position - 85f) / 5.4f), 0f, 15f);
static float Saturate(float x)
static void PlaySound(string name, float volume, float pitch, float pan)
static object Get(Type type, string name)
static ArrowBlock.? ArrowType GetArrowType(int data)
static int GetDraw(int data)
static int SetDraw(int data, int draw)
static string Get(string className, int key)
获取在当前语言类名键对应的字符串
static int ExtractContents(int value)
static int MakeBlockValue(int contents)
static int ExtractData(int value)
static Matrix CreateLookAt(Vector3 position, Vector3 target, Vector3 up)
static readonly Vector3 UnitZ