|
1
|
function c_copyc_copy
function c_copy(arg0, arg1 = true, arg2 = true, arg3 = true, arg4 = true, arg5 = true, arg6 = true, arg7 = false, arg8 = false, arg9 = false, arg10 = false)
{
if (!is_undefined(arg0))
{
if (arg1 && variable_struct_exists(arg0, "x"))
c_var("x", arg0.x);
if (arg2 && variable_struct_exists(arg0, "y"))
c_var("y", arg0.y);
if (arg3 && variable_struct_exists(arg0, "sprite_index"))
c_var("sprite_index", arg0.sprite_index);
if (arg7 && variable_struct_exists(arg0, "image_index"))
c_var("image_index", arg0.image_index);
if (arg6 && variable_struct_exists(arg0, "image_angle"))
c_var("image_angle", arg0.image_angle);
if (arg8 && variable_struct_exists(arg0, "image_blend"))
c_var("image_blend", arg0.image_blend);
if (arg4 && variable_struct_exists(arg0, "image_xscale"))
c_var("image_xscale", arg0.image_xscale);
if (arg5 && variable_struct_exists(arg0, "image_yscale"))
c_var("image_yscale", arg0.image_yscale);
if (arg9 && variable_struct_exists(arg0, "image_speed"))
c_var("image_speed", arg0.image_speed);
if (arg10 && variable_struct_exists(arg0, "image_alpha"))
c_var("image_alpha", arg0.image_alpha);
}
}
function scr_copy(arg0, arg1 = true, arg2 = true, arg3 = true, arg4 = true, arg5 = true, arg6 = true, arg7 = false, arg8 = false, arg9 = false, arg10 = false)
{
if (!is_undefined(arg0))
{
if (arg1 && variable_struct_exists(arg0, "x"))
x = arg0.x;
if (arg2 && variable_struct_exists(arg0, "y"))
y = arg0.y;
if (arg3 && variable_struct_exists(arg0, "sprite_index"))
sprite_index = arg0.sprite_index;
if (arg7 && variable_struct_exists(arg0, "image_index"))
image_index = arg0.image_index;
if (arg6 && variable_struct_exists(arg0, "image_angle"))
image_angle = arg0.image_angle;
if (arg8 && variable_struct_exists(arg0, "image_blend"))
image_blend = arg0.image_blend;
if (arg4 && variable_struct_exists(arg0, "image_xscale"))
image_xscale = arg0.image_xscale;
if (arg5 && variable_struct_exists(arg0, "image_yscale"))
image_yscale = arg0.image_yscale;
if (arg9 && variable_struct_exists(arg0, "image_speed"))
image_speed = arg0.image_speed;
if (arg10 && variable_struct_exists(arg0, "image_alpha"))
image_alpha = arg0.image_alpha;
}
} (arg0, arg1 = true, arg2 = true, arg3 = true, arg4 = true, arg5 = true, arg6 = true, arg7 = false, arg8 = false, arg9 = false, arg10 = false)
|
|
2
|
{
|
|
3
|
if (!is_undefined(arg0))
|
|
4
|
{
|
|
5
|
if (arg1 && variable_struct_exists(arg0, "x"))
|
|
6
|
c_varc_var
function c_var(arg0, arg1)
{
c_cmd_x("var", 0, arg0, arg1, 0, 0, 0);
} ("x", arg0.x);
|
|
7
|
if (arg2 && variable_struct_exists(arg0, "y"))
|
|
8
|
c_varc_var
function c_var(arg0, arg1)
{
c_cmd_x("var", 0, arg0, arg1, 0, 0, 0);
} ("y", arg0.y);
|
|
9
|
if (arg3 && variable_struct_exists(arg0, "sprite_index"))
|
|
10
|
c_varc_var
function c_var(arg0, arg1)
{
c_cmd_x("var", 0, arg0, arg1, 0, 0, 0);
} ("sprite_index", arg0.sprite_index);
|
|
11
|
if (arg7 && variable_struct_exists(arg0, "image_index"))
|
|
12
|
c_varc_var
function c_var(arg0, arg1)
{
c_cmd_x("var", 0, arg0, arg1, 0, 0, 0);
} ("image_index", arg0.image_index);
|
|
13
|
if (arg6 && variable_struct_exists(arg0, "image_angle"))
|
|
14
|
c_varc_var
function c_var(arg0, arg1)
{
c_cmd_x("var", 0, arg0, arg1, 0, 0, 0);
} ("image_angle", arg0.image_angle);
|
|
15
|
if (arg8 && variable_struct_exists(arg0, "image_blend"))
|
|
16
|
c_varc_var
function c_var(arg0, arg1)
{
c_cmd_x("var", 0, arg0, arg1, 0, 0, 0);
} ("image_blend", arg0.image_blend);
|
|
17
|
if (arg4 && variable_struct_exists(arg0, "image_xscale"))
|
|
18
|
c_varc_var
function c_var(arg0, arg1)
{
c_cmd_x("var", 0, arg0, arg1, 0, 0, 0);
} ("image_xscale", arg0.image_xscale);
|
|
19
|
if (arg5 && variable_struct_exists(arg0, "image_yscale"))
|
|
20
|
c_varc_var
function c_var(arg0, arg1)
{
c_cmd_x("var", 0, arg0, arg1, 0, 0, 0);
} ("image_yscale", arg0.image_yscale);
|
|
21
|
if (arg9 && variable_struct_exists(arg0, "image_speed"))
|
|
22
|
c_varc_var
function c_var(arg0, arg1)
{
c_cmd_x("var", 0, arg0, arg1, 0, 0, 0);
} ("image_speed", arg0.image_speed);
|
|
23
|
if (arg10 && variable_struct_exists(arg0, "image_alpha"))
|
|
24
|
c_varc_var
function c_var(arg0, arg1)
{
c_cmd_x("var", 0, arg0, arg1, 0, 0, 0);
} ("image_alpha", arg0.image_alpha);
|
|
25
|
}
|
|
26
|
}
|
|
27
|
|
|
28
|
function scr_copy(arg0, arg1 = true, arg2 = true, arg3 = true, arg4 = true, arg5 = true, arg6 = true, arg7 = false, arg8 = false, arg9 = false, arg10 = false)
|
|
29
|
{
|
|
30
|
if (!is_undefined(arg0))
|
|
31
|
{
|
|
32
|
if (arg1 && variable_struct_exists(arg0, "x"))
|
|
33
|
x = arg0.x;
|
|
34
|
if (arg2 && variable_struct_exists(arg0, "y"))
|
|
35
|
y = arg0.y;
|
|
36
|
if (arg3 && variable_struct_exists(arg0, "sprite_index"))
|
|
37
|
sprite_index = arg0.sprite_index;
|
|
38
|
if (arg7 && variable_struct_exists(arg0, "image_index"))
|
|
39
|
image_index = arg0.image_index;
|
|
40
|
if (arg6 && variable_struct_exists(arg0, "image_angle"))
|
|
41
|
image_angle = arg0.image_angle;
|
|
42
|
if (arg8 && variable_struct_exists(arg0, "image_blend"))
|
|
43
|
image_blend = arg0.image_blend;
|
|
44
|
if (arg4 && variable_struct_exists(arg0, "image_xscale"))
|
|
45
|
image_xscale = arg0.image_xscale;
|
|
46
|
if (arg5 && variable_struct_exists(arg0, "image_yscale"))
|
|
47
|
image_yscale = arg0.image_yscale;
|
|
48
|
if (arg9 && variable_struct_exists(arg0, "image_speed"))
|
|
49
|
image_speed = arg0.image_speed;
|
|
50
|
if (arg10 && variable_struct_exists(arg0, "image_alpha"))
|
|
51
|
image_alpha = arg0.image_alpha;
|
|
52
|
}
|
|
53
|
}
|