## Engine
Class MeshSkinList

source: C:\XIII\Engine\Classes\MeshSkinList.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Info
             |
             +--Engine.MeshSkinList

Direct Known Subclasses:None

class MeshSkinList
extends Engine.Info

    //-----------------------------------------------------------
    //
    //-----------------------------------------------------------

Variables
`int` | `CodeMesh` used for sounds
`array` | `MeshSkinListInfo` used for sounds
`string` | `SkinBlue` Used for team games
`string` | `SkinCode` used to give it by URL w/ otpion ?SK=xxxx
`string` | `SkinName` real name of skin in animation package
`string` | `SkinReadableName` Explicit
`string` | `SkinRed` Used for team games

Function Summary
`int` | `StaticFindSkinIndex(string RefSkinCode)`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class MeshSkinList extends Info
    00005	  config(MSL);
    00006
    00007	struct StructMeshSkinInfo
    00008	{
    00009	  var string SkinReadableName;  // Explicit
    00010	  var string SkinName;  // real name of skin in animation package
    00011	  var string SkinCode;  // used to give it by URL w/ otpion ?SK=xxxx
    00012	  var string SkinRed;   // Used for team games
    00013	  var string SkinBlue;  // Used for team games
    00014	  var int CodeMesh;     // used for sounds
    00015	};
    00016
    00017	var config array<StructMeshSkinInfo> MeshSkinListInfo;
    00018
    00019	//_____________________________________________________________________________
    00020	static function int StaticFindSkinIndex(string RefSkinCode)
    00021	{
    00022	    local int i, NbSkins;
    00023	    local string sCode;
    00024
    00025	    sCode = Caps(left(RefskinCode, 4));
    00026	    NbSkins = default.MeshSkinListInfo.Length;
    00027	    if ( NbSkins > 0 )
    00028	    {
    00029	      for (i=0; i<NbSkins; i++)
    00030	        if ( default.MeshSkinListInfo[i].SkinCode == sCode )
    00031	          return i; // found
    00032	    }
    00033	    return (NbSkins + 1); // not found
    00034	}
    00035
    00036	// default Content of MSL.ini :
    00037	/*
    00038	[Engine.MeshSkinList]
    00039	MeshSkinListInfo=(SkinReadableName="XIII",SkinName="XIIIPersos.XIIIMilitM",SkinCode="S13M",SKinRed="XIIIPersos.Mul_XIIIMilit_RougeTex",SkinBlue="XIIIPersos.Mul_XIIIMilit_BleuTex",CodeMesh=9)
    00040	MeshSkinListInfo=(SkinReadableName="Shinyaku",SkinName="XIIIPersos.DanhsuM",SkinCode="DANH",SKinRed="XIIIPersos.Mul_danhsu_rougeTEX",SkinBlue="XIIIPersos.Mul_danhsu_bleuTEX",CodeMesh=14)
    00041	MeshSkinListInfo=(SkinReadableName="Trystan",SkinName="XIIIPersos.ScandiM",SkinCode="SCAN",SKinRed="XIIIPersos.Mul_scandi_rougeTEX",SkinBlue="XIIIPersos.Mul_scandi_bleuTEX",CodeMesh=29)
    00042	MeshSkinListInfo=(SkinReadableName="Carrington",SkinName="XIIIPersos.CarringtonM",SkinCode="CARR",SKinRed="XIIIPersos.Mul_Carrington_rougeTEX",SkinBlue="XIIIPersos.Mul_Carrington_bleuTEX",CodeMesh=16)
    00043	MeshSkinListInfo=(SkinReadableName="John",SkinName="XIIIPersos.GaminM",SkinCode="GAMI",SKinRed="XIIIPersos.Mul_gamin_rougeTEX",SkinBlue="XIIIPersos.Mul_gamin_bleuTEX",CodeMesh=13)
    00044	MeshSkinListInfo=(SkinReadableName="Densetsu",SkinName="XIIIPersos.NiheiM",SkinCode="NIHE",SKinRed="XIIIPersos.Mul_nihei_rougeTEX",SkinBlue="XIIIPersos.Mul_nihei_bleuTEX",CodeMesh=6)
    00045	MeshSkinListInfo=(SkinReadableName="Roger",SkinName="XIIIPersos.FrenchyM",SkinCode="FR1M",SKinRed="XIIIPersos.Mul_Frenchy_rougeTEX",SkinBlue="XIIIPersos.Mul_Frenchy_bleuTEX",CodeMesh=34)
    00046	MeshSkinListInfo=(SkinReadableName="Robert",SkinName="XIIIPersos.Frenchy2M",SkinCode="FR2M",SKinRed="XIIIPersos.Mul_Frenchy2_rougeTEX",SkinBlue="XIIIPersos.Mul_Frenchy2_bleuTEX",CodeMesh=28)
    00047	MeshSkinListInfo=(SkinReadableName="Armael",SkinName="XIIIPersos.RastaM",SkinCode="RAST",SKinRed="XIIIPersos.Mul_rasta_rougeTEX",SkinBlue="XIIIPersos.Mul_rasta_bleuTEX",CodeMesh=8)
    00048	MeshSkinListInfo=(SkinReadableName="Mongoose",SkinName="XIIIPersos.MangousteM",SkinCode="MONG",SKinRed="XIIIPersos.Mul_Mangouste_rougeTEX",SkinBlue="XIIIPersos.Mul_Mangouste_bleuTEX",CodeMesh=27)
    00049	*/
    00050
    00051	defaultproperties
    00052	{
    00053	     MeshSkinListInfo(0)=(SkinReadableName="XIII",SkinName="XIIIPersos.XIIIMilitM",SkinCode="S13M",SkinRed="XIIIPersos.Mul_XIIIMilit_RougeTex",SkinBlue="XIIIPersos.Mul_XIIIMilit_BleuTex",CodeMesh=9)
    00054	     MeshSkinListInfo(1)=(SkinReadableName="Shinyaku",SkinName="XIIIPersos.DanhsuM",SkinCode="DANH",SkinRed="XIIIPersos.Mul_danhsu_rougeTEX",SkinBlue="XIIIPersos.Mul_danhsu_bleuTEX",CodeMesh=14)
    00055	     MeshSkinListInfo(2)=(SkinReadableName="Trystan",SkinName="XIIIPersos.ScandiM",SkinCode="SCAN",SkinRed="XIIIPersos.Mul_scandi_rougeTEX",SkinBlue="XIIIPersos.Mul_scandi_bleuTEX",CodeMesh=29)
    00056	     MeshSkinListInfo(3)=(SkinReadableName="Carrington",SkinName="XIIIPersos.CarringtonM",SkinCode="CARR",SkinRed="XIIIPersos.Mul_Carrington_rougeTEX",SkinBlue="XIIIPersos.Mul_Carrington_bleuTEX",CodeMesh=16)
    00057	     MeshSkinListInfo(4)=(SkinReadableName="John",SkinName="XIIIPersos.GaminM",SkinCode="GAMI",SkinRed="XIIIPersos.Mul_gamin_rougeTEX",SkinBlue="XIIIPersos.Mul_gamin_bleuTEX",CodeMesh=13)
    00058	     MeshSkinListInfo(5)=(SkinReadableName="Densetsu",SkinName="XIIIPersos.NiheiM",SkinCode="NIHE",SkinRed="XIIIPersos.Mul_nihei_rougeTEX",SkinBlue="XIIIPersos.Mul_nihei_bleuTEX",CodeMesh=6)
    00059	     MeshSkinListInfo(6)=(SkinReadableName="Roger",SkinName="XIIIPersos.FrenchyM",SkinCode="FR1M",SkinRed="XIIIPersos.Mul_Frenchy_rougeTEX",SkinBlue="XIIIPersos.Mul_Frenchy_bleuTEX",CodeMesh=34)
    00060	     MeshSkinListInfo(7)=(SkinReadableName="Robert",SkinName="XIIIPersos.Frenchy2M",SkinCode="FR2M",SkinRed="XIIIPersos.Mul_Frenchy2_rougeTEX",SkinBlue="XIIIPersos.Mul_Frenchy2_bleuTEX",CodeMesh=28)
    00061	     MeshSkinListInfo(8)=(SkinReadableName="Armael",SkinName="XIIIPersos.RastaM",SkinCode="RAST",SkinRed="XIIIPersos.Mul_rasta_rougeTEX",SkinBlue="XIIIPersos.Mul_rasta_bleuTEX",CodeMesh=8)
    00062	     MeshSkinListInfo(9)=(SkinReadableName="Mongoose",SkinName="XIIIPersos.MangousteM",SkinCode="MONG",SkinRed="XIIIPersos.Mul_Mangouste_rougeTEX",SkinBlue="XIIIPersos.Mul_Mangouste_bleuTEX",CodeMesh=27)
    00063	}

End Source Code