public void LoadFromStream(AGSAlignedStream ar) { id = ar.ReadInt32(); scriptname = ar.ReadFixedString(30); filename = ar.ReadFixedString(15); type_bundling = ar.ReadByte(); type = ar.ReadByte(); type_file = ar.ReadByte(); repeat_default = ar.ReadByte(); priority_default = ar.ReadInt16(); volume_default = ar.ReadInt16(); reserved1 = ar.ReadInt32(); }
public void LoadFromStream(AGSAlignedStream ar) { view_default = ar.ReadInt32(); view_talk = ar.ReadInt32(); view_normal = ar.ReadInt32(); room = ar.ReadInt32(); room_previous = ar.ReadInt32(); x = ar.ReadInt32(); y = ar.ReadInt32(); wait = ar.ReadInt32(); flags = ar.ReadInt32(); following = ar.ReadInt16(); followinfo = ar.ReadInt16(); view_idle = ar.ReadInt16(); idle_time = ar.ReadInt16(); idle_left = ar.ReadInt16(); transparency = ar.ReadInt16(); baseline = ar.ReadInt16(); active_invitem = ar.ReadInt32(); talk_color = ar.ReadInt32(); view_think = ar.ReadInt32(); view_blink = ar.ReadInt16(); blink_interval = ar.ReadInt16(); blink_timer = ar.ReadInt16(); blink_frame = ar.ReadInt16(); walkspeed_y = ar.ReadInt16(); picture_offset_y = ar.ReadInt16(); z = ar.ReadInt32(); wait_walk = ar.ReadInt32(); speech_animation_speed = ar.ReadInt16(); reserved1 = ar.ReadInt16(); blocking_width = ar.ReadInt16(); blocking_height = ar.ReadInt16(); index_id = ar.ReadInt32(); picture_offset_x = ar.ReadInt16(); walk_wait_counter = ar.ReadInt16(); loop = ar.ReadInt16(); frame = ar.ReadInt16(); walking = ar.ReadInt16(); animating = ar.ReadInt16(); walkspeed = ar.ReadInt16(); animspeed = ar.ReadInt16(); inventory = ar.ReadArrayInt16(301); act_x = ar.ReadInt16(); act_y = ar.ReadInt16(); name = ar.ReadFixedString(40); name_script = ar.ReadFixedString(20); //NOTE(adm244): in source it's a byte, but in the actual dta it's int16 on = ar.ReadInt16(); }