0e4caa1119
- Add AudioConsts.cs with Cues, NameDictionaries, and Parameters classes - Remove AudioEnumIds.cs, AudioEnums.cs, and AudioObjectDefinitions.cs - Update AudioObject.cs to include CueName property and serialization - Update AudioSystem.cs to use new NameDictionaries and Parameters classes - Update SetStateBind.cs to use Parameters.GameState type - Change UI text from "PlaySound" to "StopSound" in SampleScene.unity - Update binary audio data file AudioObject.bytes
276 lines
8.2 KiB
C#
276 lines
8.2 KiB
C#
/*
|
|
* auto generated by tools(注意:千万不要手动修改本文件)
|
|
* AudioConsts
|
|
*/
|
|
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace OCES.Audio
|
|
{
|
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
|
public class Cues
|
|
{
|
|
public static uint AnimCollision = 1;
|
|
public static uint AnimToWeapon = 2;
|
|
public static uint ArrowFire = 3;
|
|
public static uint BoxBeSelected = 4;
|
|
public static uint BoxCollision = 5;
|
|
public static uint BoxMove = 6;
|
|
public static uint BoxTouch = 7;
|
|
public static uint BoxToWeapon = 8;
|
|
public static uint ChangeColor = 9;
|
|
public static uint ClickButton = 10;
|
|
public static uint CoinFly = 11;
|
|
public static uint DamageByArrow = 12;
|
|
public static uint DamageByBullet = 13;
|
|
public static uint DamageByCannonBall = 14;
|
|
public static uint Defeat = 15;
|
|
public static uint DestroyBox = 16;
|
|
public static uint DevilAttackShield = 17;
|
|
public static uint DevileBeHit = 18;
|
|
public static uint DevilDie = 19;
|
|
public static uint DevilFire = 20;
|
|
public static uint DevilResurrection = 21;
|
|
public static uint DragonAttackShield = 22;
|
|
public static uint DragonBeHit = 23;
|
|
public static uint DragonDie = 24;
|
|
public static uint DragonFire = 25;
|
|
public static uint DragonResurrection = 26;
|
|
public static uint GhostAttackShield = 27;
|
|
public static uint GhostBeHit = 28;
|
|
public static uint GhostDie = 29;
|
|
public static uint GhostFire = 30;
|
|
public static uint GhostResurrection = 31;
|
|
public static uint GunFire = 32;
|
|
public static uint HorseMove = 33;
|
|
public static uint LevelBegins = 34;
|
|
public static uint PrincessDown = 35;
|
|
public static uint PrincessFear = 36;
|
|
public static uint ShieldBroken = 37;
|
|
public static uint ShieldUnderAttack = 38;
|
|
public static uint Spin = 39;
|
|
public static uint TigerMove = 40;
|
|
public static uint UnlockProp = 41;
|
|
public static uint UnlockTurret = 42;
|
|
public static uint Victory = 43;
|
|
public static uint WeaponExhausted = 44;
|
|
public static uint WeaponFire = 45;
|
|
public static uint Ambience = 46;
|
|
public static uint DevilBeHit_01 = 47;
|
|
public static uint Chinese_Number_1_5 = 48;
|
|
public static uint Chinese_Number_6_10 = 49;
|
|
public static uint Chinese_Number_01 = 50;
|
|
public static uint Japanese_Number_02 = 51;
|
|
public static uint Bar = 52;
|
|
public static uint Beat = 53;
|
|
public static uint Grid = 54;
|
|
public static uint NVDice = 55;
|
|
public static uint NVHeartbeats = 56;
|
|
public static uint au_sfx_notice_level_countDown_edge = 57;
|
|
public static uint au_sfx_notice_level_countDown_time = 58;
|
|
public static uint au_sfx_ui_button_corePlay_choose = 59;
|
|
public static uint au_sfx_ui_button_corePlay_unchoose = 60;
|
|
public static uint au_sfx_ui_button_corePlay_clear = 61;
|
|
public static uint sfx_cymbal = 71;
|
|
public static uint Spanish_number_03 = 73;
|
|
} //public class Cues
|
|
|
|
[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")]
|
|
public class NameDictionaries
|
|
{
|
|
public static readonly Dictionary<string, uint> NameToId = new()
|
|
{
|
|
{ "AnimCollision", 1 },
|
|
{ "AnimToWeapon", 2 },
|
|
{ "ArrowFire", 3 },
|
|
{ "BoxBeSelected", 4 },
|
|
{ "BoxCollision", 5 },
|
|
{ "BoxMove", 6 },
|
|
{ "BoxTouch", 7 },
|
|
{ "BoxToWeapon", 8 },
|
|
{ "ChangeColor", 9 },
|
|
{ "ClickButton", 10 },
|
|
{ "CoinFly", 11 },
|
|
{ "DamageByArrow", 12 },
|
|
{ "DamageByBullet", 13 },
|
|
{ "DamageByCannonBall", 14 },
|
|
{ "Defeat", 15 },
|
|
{ "DestroyBox", 16 },
|
|
{ "DevilAttackShield", 17 },
|
|
{ "DevilBeHit_01", 18 },
|
|
{ "DevilBeHit_02", 18 },
|
|
{ "DevilBeHit_03", 18 },
|
|
{ "DevilDie", 19 },
|
|
{ "DevilFire", 20 },
|
|
{ "DevilResurrection", 21 },
|
|
{ "DragonAttackShield", 22 },
|
|
{ "DragonBeHit", 23 },
|
|
{ "DragonDie", 24 },
|
|
{ "DragonFire", 25 },
|
|
{ "DragonResurrection", 26 },
|
|
{ "GhostAttackShield", 27 },
|
|
{ "GhostBeHit", 28 },
|
|
{ "GhostDie", 29 },
|
|
{ "GhostFire", 30 },
|
|
{ "GhostResurrection", 31 },
|
|
{ "GunFire", 32 },
|
|
{ "HorseMove", 33 },
|
|
{ "LevelBegins", 34 },
|
|
{ "PrincessDown", 35 },
|
|
{ "PrincessFear", 36 },
|
|
{ "ShieldBroken", 37 },
|
|
{ "ShieldUnderAttack", 38 },
|
|
{ "Spin", 39 },
|
|
{ "TigerMove", 40 },
|
|
{ "UnlockProp", 41 },
|
|
{ "UnlockTurret", 42 },
|
|
{ "Victory", 43 },
|
|
{ "WeaponExhausted", 44 },
|
|
{ "WeaponFire", 45 },
|
|
{ "au_stream", 46 },
|
|
{ "rain", 46 },
|
|
{ "Chinese Number 01", 48 },
|
|
{ "Chinese Number 02", 48 },
|
|
{ "Chinese Number 03", 48 },
|
|
{ "Chinese Number 04", 48 },
|
|
{ "Chinese Number 05", 48 },
|
|
{ "Chinese Number 06", 49 },
|
|
{ "Chinese Number 07", 49 },
|
|
{ "Chinese Number 08", 49 },
|
|
{ "Chinese Number 09", 49 },
|
|
{ "Chinese Number 10", 49 },
|
|
{ "Japanese Number 02", 51 },
|
|
{ "Bar", 52 },
|
|
{ "Beat", 53 },
|
|
{ "Grid", 54 },
|
|
{ "NVDice", 55 },
|
|
{ "NVHeartbeats", 56 },
|
|
{ "au_sfx_notice_level_countDown_edge", 57 },
|
|
{ "au_sfx_notice_level_countDown_time", 58 },
|
|
{ "0,62", 59 },
|
|
{ "1,65", 59 },
|
|
{ "2,68", 59 },
|
|
{ "0,63", 60 },
|
|
{ "1,66", 60 },
|
|
{ "2,69", 60 },
|
|
{ "0,64", 61 },
|
|
{ "1,67", 61 },
|
|
{ "2,70", 61 },
|
|
{ "au_coreplay_choose_v120_a", 62 },
|
|
{ "au_coreplay_unchoose_v120_a", 63 },
|
|
{ "au_coreplay_clear_v120_a", 64 },
|
|
{ "au_sfx_ui_button_corePlay_choose_ice1", 65 },
|
|
{ "au_sfx_ui_button_corePlay_choose_ice2", 65 },
|
|
{ "au_sfx_ui_button_corePlay_choose_ice3", 65 },
|
|
{ "au_sfx_ui_button_corePlay_unchoose_ice1", 66 },
|
|
{ "au_sfx_ui_button_corePlay_unchoose_ice2", 66 },
|
|
{ "au_sfx_ui_button_corePlay_unchoose_ice3", 66 },
|
|
{ "au_sfx_ui_button_corePlay_clear_ice1", 67 },
|
|
{ "au_sfx_ui_button_corePlay_clear_ice2", 67 },
|
|
{ "au_sfx_ui_button_corePlay_clear_ice3", 67 },
|
|
{ "au_sfx_ui_button_corePlay_choose_cloud1", 68 },
|
|
{ "au_sfx_ui_button_corePlay_choose_cloud2", 68 },
|
|
{ "au_sfx_ui_button_corePlay_choose_cloud3", 68 },
|
|
{ "au_sfx_ui_button_corePlay_unchoose_cloud1", 69 },
|
|
{ "au_sfx_ui_button_corePlay_unchoose_cloud2", 69 },
|
|
{ "au_sfx_ui_button_corePlay_unchoose_cloud3", 69 },
|
|
{ "au_sfx_ui_button_corePlay_clear_cloud1", 70 },
|
|
{ "au_sfx_ui_button_corePlay_clear_cloud2", 70 },
|
|
{ "au_sfx_ui_button_corePlay_clear_cloud3", 70 },
|
|
{ "sfx_notice_test", 71 },
|
|
{ "Spanish Number 03", 73 },
|
|
};
|
|
|
|
public static readonly HashSet<string> AmbiguousNames = new()
|
|
{
|
|
"DevilBeHit_01",
|
|
"DevilBeHit_02",
|
|
"DevilBeHit_03",
|
|
"Chinese Number 01",
|
|
};
|
|
|
|
public static readonly HashSet<string> SharedIdNames = new()
|
|
{
|
|
"DevilBeHit_01",
|
|
"DevilBeHit_02",
|
|
"DevilBeHit_03",
|
|
"au_stream",
|
|
"rain",
|
|
"Chinese Number 01",
|
|
"Chinese Number 02",
|
|
"Chinese Number 03",
|
|
"Chinese Number 04",
|
|
"Chinese Number 05",
|
|
"Chinese Number 06",
|
|
"Chinese Number 07",
|
|
"Chinese Number 08",
|
|
"Chinese Number 09",
|
|
"Chinese Number 10",
|
|
"0,62",
|
|
"1,65",
|
|
"2,68",
|
|
"0,63",
|
|
"1,66",
|
|
"2,69",
|
|
"0,64",
|
|
"1,67",
|
|
"2,70",
|
|
"au_sfx_ui_button_corePlay_choose_ice1",
|
|
"au_sfx_ui_button_corePlay_choose_ice2",
|
|
"au_sfx_ui_button_corePlay_choose_ice3",
|
|
"au_sfx_ui_button_corePlay_unchoose_ice1",
|
|
"au_sfx_ui_button_corePlay_unchoose_ice2",
|
|
"au_sfx_ui_button_corePlay_unchoose_ice3",
|
|
"au_sfx_ui_button_corePlay_clear_ice1",
|
|
"au_sfx_ui_button_corePlay_clear_ice2",
|
|
"au_sfx_ui_button_corePlay_clear_ice3",
|
|
"au_sfx_ui_button_corePlay_choose_cloud1",
|
|
"au_sfx_ui_button_corePlay_choose_cloud2",
|
|
"au_sfx_ui_button_corePlay_choose_cloud3",
|
|
"au_sfx_ui_button_corePlay_unchoose_cloud1",
|
|
"au_sfx_ui_button_corePlay_unchoose_cloud2",
|
|
"au_sfx_ui_button_corePlay_unchoose_cloud3",
|
|
"au_sfx_ui_button_corePlay_clear_cloud1",
|
|
"au_sfx_ui_button_corePlay_clear_cloud2",
|
|
"au_sfx_ui_button_corePlay_clear_cloud3",
|
|
};
|
|
} //public class NameDictionaries
|
|
|
|
[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")]
|
|
public class Parameters
|
|
{
|
|
public static class EnumIds
|
|
{
|
|
public const uint GameStateId = 1;
|
|
|
|
public const uint TileMaterialId = 2;
|
|
|
|
|
|
public static void RegisterAllGameState()
|
|
{
|
|
StateGroupRegistry.Register<GameState>(1);
|
|
StateGroupRegistry.Register<TileMaterial>(2);
|
|
}
|
|
}
|
|
|
|
public enum GameState
|
|
{
|
|
Home, // 主界面
|
|
Game, // 关卡内
|
|
Win, // 胜利
|
|
Lose, // 失败
|
|
Guitar = 5, // 测试用值- guitar
|
|
Bass = 6, // 测试用值
|
|
}
|
|
|
|
public enum TileMaterial
|
|
{
|
|
Normal, // 普通牌
|
|
Ice, // 冰
|
|
Cloud, // 云
|
|
}
|
|
|
|
} //public class Parameters
|
|
}
|