EntityData CompileEntity() { EntityData eD = new EntityData(); eD.name = nameBox.Text; eD.gfxtype = (EntityData.GraphicsType)entityGfxList.SelectedIndex; eD.graphics = (int)graphicsUpDown.Value; eD.code = currentCode; return eD; }
void DisplayEntity(EntityData entity) { nameBox.Text = entity.name; entityGfxList.SelectedIndex = (int)entity.gfxtype; graphicsUpDown.Value = entity.graphics; currentCode = entity.code; }