コード例 #1
0
 public void SetFromStoreData(StoreData storeData)
 {
     Nickname        = storeData.CoreData.Nickname;
     CreateId        = storeData.CreateId;
     FontRegion      = storeData.CoreData.FontRegion;
     FavoriteColor   = storeData.CoreData.FavoriteColor;
     Gender          = storeData.CoreData.Gender;
     Height          = storeData.CoreData.Height;
     Build           = storeData.CoreData.Build;
     Type            = storeData.CoreData.Type;
     RegionMove      = storeData.CoreData.RegionMove;
     FacelineType    = storeData.CoreData.FacelineType;
     FacelineColor   = storeData.CoreData.FacelineColor;
     FacelineWrinkle = storeData.CoreData.FacelineWrinkle;
     FacelineMake    = storeData.CoreData.FacelineMake;
     HairType        = storeData.CoreData.HairType;
     HairColor       = storeData.CoreData.HairColor;
     HairFlip        = storeData.CoreData.HairFlip;
     EyeType         = storeData.CoreData.EyeType;
     EyeColor        = storeData.CoreData.EyeColor;
     EyeScale        = storeData.CoreData.EyeScale;
     EyeAspect       = storeData.CoreData.EyeAspect;
     EyeRotate       = storeData.CoreData.EyeRotate;
     EyeX            = storeData.CoreData.EyeX;
     EyeY            = storeData.CoreData.EyeY;
     EyebrowType     = storeData.CoreData.EyebrowType;
     EyebrowColor    = storeData.CoreData.EyebrowColor;
     EyebrowScale    = storeData.CoreData.EyebrowScale;
     EyebrowAspect   = storeData.CoreData.EyebrowAspect;
     EyebrowRotate   = storeData.CoreData.EyebrowRotate;
     EyebrowX        = storeData.CoreData.EyebrowX;
     EyebrowY        = storeData.CoreData.EyebrowY;
     NoseType        = storeData.CoreData.NoseType;
     NoseScale       = storeData.CoreData.NoseScale;
     NoseY           = storeData.CoreData.NoseY;
     MouthType       = storeData.CoreData.MouthType;
     MouthColor      = storeData.CoreData.MouthColor;
     MouthScale      = storeData.CoreData.MouthScale;
     MouthAspect     = storeData.CoreData.MouthAspect;
     MouthY          = storeData.CoreData.MouthY;
     BeardColor      = storeData.CoreData.BeardColor;
     BeardType       = storeData.CoreData.BeardType;
     MustacheType    = storeData.CoreData.MustacheType;
     MustacheScale   = storeData.CoreData.MustacheScale;
     MustacheY       = storeData.CoreData.MustacheY;
     GlassType       = storeData.CoreData.GlassType;
     GlassColor      = storeData.CoreData.GlassColor;
     GlassScale      = storeData.CoreData.GlassScale;
     GlassY          = storeData.CoreData.GlassY;
     MoleType        = storeData.CoreData.MoleType;
     MoleScale       = storeData.CoreData.MoleScale;
     MoleX           = storeData.CoreData.MoleX;
     MoleY           = storeData.CoreData.MoleY;
     Reserved        = 0;
 }
コード例 #2
0
        private static Dictionary <char, FontRegion> BuildCharacterMap(FontFile fontFile, Texture texture)
        {
            var characterMap = new Dictionary <char, FontRegion>();

            foreach (var fontChar in fontFile.Chars)
            {
                var character  = (char)fontChar.ID;
                var name       = character.ToString();
                var region     = new TextureRegion(name, texture, fontChar.X, fontChar.Y, fontChar.Width, fontChar.Height);
                var fontRegion = new FontRegion {
                    FontChar = fontChar, TextureRegion = region
                };
                characterMap.Add(character, fontRegion);
            }

            return(characterMap);
        }
コード例 #3
0
ファイル: Nickname.cs プロジェクト: ianuub/Ryujinxxx
 public bool IsValidForFontRegion(FontRegion fontRegion)
 {
     // TODO: We need to extract the character tables used here, for now just assume that if it's valid Unicode, it will be valid for any font.
     return(IsValid());
 }