CSharp文件

输出C#文件

以C#形式描述与C的头文件信息相同的文件。

Ver.2.34之前的内容

输出示例如下。

public class DemoProj {
public const int GUN1_HIGH = (0);
public const int BOMB2 = (1);
}
namespace DemoProj.DemoProj {
public enum DemoProj {
GUN1_HIGH = 0,
BOMB2 = 1,
}
}

Ver.2.35之后的内容

更改内容

  • namespace为项目名.ACB名
  • ACF也创建C#文件。
  • 变量名和enum值不用大写。(此前C头文件的Define是用的大写)
     
  • Cue名更改为enum Cue。(此前是ACB名)
  • 将class定义放入namespace中。(此前是在外面)
  • 将Cue的Enum值更改为Cue ID。(此前是Index值)

    C#输出的输出示例如下。

ACB C#文件

namespace DemoProj.DemoProj2 {
public class DemoProj2 {
public const int cri_middleware_sdk = (0);
public const int cri_middleware_sdk_PitchHi = (1);
public const int gun1_High_TrackAutomation = (2);
public const int VoiceBehavior = (3);
public const int ExtCue = (4);
}
public enum Cue {
cri_middleware_sdk = 0,
cri_middleware_sdk_PitchHi = 1,
gun1_High_TrackAutomation = 2,
VoiceBehavior = 3,
ExtCue = 4,
}
public enum AisacControl {
Any = 3,
}
}

ACF C#文件

namespace DemoProj_acf {
namespace Category {
public enum Main {
SPECIAL = 0,
BGM = 1,
SE = 2,
VOICE = 3,
}
public enum Sub {
CutScene = 10,
Battle = 11,
Menu = 12,
}
}
public enum AisacControl {
Rnd = 0,
Distance = 1,
AisacControl = 2,
Any = 3,
rainlevel = 4,
RotateSpeed = 5,
rpm = 6,
load = 7,
Pitch = 8,
FIlter = 9,
AisacControl10 = 10,
AisacControl11 = 11,
AisacControl12 = 12,
AisacControl13 = 13,
AisacControl14 = 14,
AisacControl15 = 15,
}
public enum GlobalAisac {
RndPitch,
RndPan,
RndDistance,
DistanceSimple,
DistanceDynamic,
RndKalimbaPitch,
RndPreDelay,
Aisac_0,
}
public enum VoiceLimitGroup {
Mono,
Quad,
Two,
}
namespace DspSetting {
public enum DspBusSetting_0 {
Snapshot,
Snapshot_0,
}
public enum DspBusSetting_1 {
Snapshot,
}
}
public enum DspBusName {
BUS1,
BUS2,
BUS3,
BUS4,
BUS5,
BUS6,
BUS7,
MasterOut,
Reverb,
}
public enum GameVariable {
Default,
}
namespace Selector {
public enum Selector_0 {
SelectorLabel_0,
SelectorLabel_1,
SelectorLabel_2,
}
public enum Selector_1 {
SelectorLabel_0,
}
}
public class DemoProj_acf {
public const int REACTNUM = (2);
}
}