示例#1
0
 public static MusicEntity PROC_LUNA_SET(int type, object[] args, CataloguePool cp, ref Catalogue chosen, ref int ptr)
 {
     if (type == (int)DefinedCmd.LUNA_SET)
     {
         chosen = cp.GetCatalogueFirst(args[0] as string);
         return(null);
     }
     return(null);
 }
示例#2
0
 public static MusicEntity PROC_LUNA_PLAYC(int type, object[] args, CataloguePool cp, ref Catalogue chosen, ref int ptr)
 {
     if (type == (int)DefinedCmd.LUNA_PLAYC)
     {
         if (args.Length > 2)
         {
             LpsAudio.AudioDelegations.ChangeVolume((float)args[2] / 100f);
         }
         return(cp.GetCatalogueFirst(args[0] as string).getMusic(ScriptUtil.RemoveExtension(args[1] as string)));
     }
     return(null);
 }