Пример #1
0
 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;
 }
Пример #2
0
 void DisplayEntity(EntityData entity)
 {
     nameBox.Text = entity.name;
     entityGfxList.SelectedIndex = (int)entity.gfxtype;
     graphicsUpDown.Value = entity.graphics;
     currentCode = entity.code;
 }