C++로 자작 언어(ClauText) 만들기

1-2. ClauText 알아보기 B

 데이터는 다음과 같은 형태입니다. ( Paradox사의 EU4게임의 세이브파일 중 일부 입니다. )

name="Stokholm"
state=yes
owner="DAN"
controller="DAN"
previous_controller="DAN"
seat_in_parliament={
	bribe="lose_navy_tradition"
}
institutions={
	100.000 100.000 100.000 100.000 100.000 100.000 100.000 
}
core="SWE"
core="DAN"
trade="baltic_sea"
unit={
	id=1156126
	type=4713
}

 

campaign_stats={
	{
		id=0
		comparison=1
		key="game_country"
		selector="RUS"
		localization="Russia"
	}
	{
		id=1
		comparison=2
		key="longest_reign"
		localization="Mikhail I"
		value=26.000
	}
	{
		id=2
		comparison=2
		key="wars_won"
	}
	{
		id=3
		comparison=2
		key="wars_lost"
	}
	{
		id=4
		comparison=2
		key="army_kills"
		sample_count=2
	}
	{
		id=5
		comparison=2
		key="army_losses"
		sample_count=2
	}
	{
		id=6
		comparison=2
		key="navy_kills"
		sample_count=2
	}
	{
		id=7
		comparison=2
		key="navy_losses"
		sample_count=2
	}
	{
		id=8
		comparison=2
		key="countries_removed"
	}
	{
		id=9
		comparison=2
		key="provs_taken"
	}
	{
		id=10
		comparison=2
		key="provs_lost"
	}
	{
		id=11
		comparison=0
		key="leader_count"
		value=4.000
	}
	{
		id=12
		comparison=0
		key="best_leader"
		localization="ȇMalyuta Mansurovǡ ( 3 / 3 / 6 / 3 )"
		value=21.000
	}
	{
		id=13
		comparison=1
		key="religion"
		selector="orthodox"
		localization="Orthodox"
	}
	{
		id=14
		comparison=2
		key="best_prov"
		localization="Canton"
		value=45.000
	}
	{
		id=15
		comparison=2
		key="disasters"
	}
}

 

 

 

댓글

댓글 본문