github.com/archlabjp/eeslism-go@v0.0.0-20231109122333-4bb7bfcdf292/eeslism/eschdlr_s.go (about)

     1  //This file is part of EESLISM.
     2  //
     3  //Foobar is free software : you can redistribute itand /or modify
     4  //it under the terms of the GNU General Public License as published by
     5  //the Free Software Foundation, either version 3 of the License, or
     6  //(at your option) any later version.
     7  //
     8  //Foobar is distributed in the hope that it will be useful,
     9  //but WITHOUT ANY WARRANTY; without even the implied warranty of
    10  //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
    11  //GNU General Public License for more details.
    12  //
    13  //You should have received a copy of the GNU General Public License
    14  //along with Foobar.If not, see < https://www.gnu.org/licenses/>.
    15  
    16  /*   eschdlr_s.c   */
    17  
    18  package eeslism
    19  
    20  /* -------------------------------------------------------------------------- */
    21  
    22  func Eeschdlr(day, ttmm int, Schdl *SCHDL, Rmvls *RMVLS) {
    23  	//r := Rmvls.Room
    24  
    25  	for j := range Schdl.Sch {
    26  		Schdl.Val[j] = schval(day, ttmm, &Schdl.Sch[j], Schdl.Dsch)
    27  	}
    28  
    29  	for j := range Schdl.Scw {
    30  		Schdl.Isw[j] = scwmode(day, ttmm, &Schdl.Scw[j], Schdl.Dscw)
    31  	}
    32  
    33  	if SIMUL_BUILDG {
    34  		if DEBUG {
    35  			xprschval(Schdl.Val, Schdl.Isw)
    36  		}
    37  
    38  		Windowschdlr(Schdl.Isw, Rmvls.Window, Rmvls.Sd)
    39  		Vtschdlr(Rmvls.Room)
    40  		Aichschdlr(Schdl.Val, Rmvls.Room)
    41  
    42  		if DEBUG {
    43  			xprqin(Rmvls.Room)
    44  			xprvent(Rmvls.Room)
    45  		}
    46  	}
    47  }