private static void Init_Chicken() { float defaultTextureWidth = 1024; float defaultTextureHeight = 256; int x0, x1, y0, y1; x0 = 74; x1 = 210; y0 = 69; y1 = 219; dChicken_BodyDown = new UVType("Default Chicken Body Down", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 700 }; x0 = 465; x1 = 595; y0 = 69; y1 = 219; dChicken_BodyUp = new UVType("Default Chicken Body Up", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 701 }; x0 = 261; x1 = 403; y0 = 69; y1 = 219; dChicken_BodyRight = new UVType("Default Chicken Body Right", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 702 }; x0 = 403; x1 = 261; y0 = 69; y1 = 219; dChicken_BodyLeft = new UVType("Default Chicken Body Left", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 703 }; }
public static void Init() { if (isInit) { return; } isInit = true; #if !SILENT Debug.Log("V_Animation.Init " + DATA_LOCATION); #endif System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US"); System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US"); if (DATA_LOCATION == DataLocation.Assets) { Init_Folders(); } else { //UnitAnim.RenameAnimationsInResources(); // Run once when updating resources folder } UVType.Init(); UnitAnim.Init(); UnitAnimType.Init(); }
public static void Init() { if (isInit) { return; } isInit = true; #if !SILENT Debug.Log("V_Animation.Init " + DATA_LOCATION); #endif if (DATA_LOCATION == DataLocation.Assets) { Init_Folders(); } UVType.Init(); UnitAnim.Init(); UnitAnimType.Init(); }
public V_Skeleton_Frame(int _frameCount, Vector3 _pos, float _rot, string _trigger, UVType _uvType, float size, float scaleX, float scaleY, int sortingOrder, Vector2 pivot, Vector3 v00offset, Vector3 v01offset, Vector3 v10offset, Vector3 v11offset) { frameCount = _frameCount; pos = _pos; rot = _rot; trigger = _trigger; uvType = _uvType; this.size = size; this.scaleX = scaleX; this.scaleY = scaleY; this.sortingOrder = sortingOrder; this.pivot = pivot; this.v00offset = v00offset; this.v01offset = v01offset; this.v10offset = v10offset; this.v11offset = v11offset; RefreshVertices(); }
public static V_Skeleton_Frame Load(string save) { string[] content = V_Animation.SplitString(save, "#SKELETONFRAME#"); int frameCount = int.Parse(content[0]); Vector3 pos = V_Animation.Load_Vector3(content[1]); float size = float.Parse(content[2]); int rot = int.Parse(content[3]); V_Animation.StringArrPushIfIndex(4, ref content, ""); string trigger = content[4]; V_Animation.StringArrPushIfIndex(5, ref content, ""); UVType uvType = UVType.Load(content[5]); V_Animation.StringArrPushIfIndex(6, ref content, "1"); float scaleX = float.Parse(content[6]); V_Animation.StringArrPushIfIndex(7, ref content, "1"); float scaleY = float.Parse(content[7]); V_Animation.StringArrPushIfIndex(8, ref content, "-100"); int sortingOrder = int.Parse(content[8]); V_Animation.StringArrPushIfIndex(9, ref content, "0,0"); Vector2 pivot = V_Animation.Load_Vector2(content[9]); V_Animation.StringArrPushIfIndex(10, ref content, "0,0"); Vector2 v00offset = V_Animation.Load_Vector2(content[10]); V_Animation.StringArrPushIfIndex(11, ref content, "0,0"); Vector2 v01offset = V_Animation.Load_Vector2(content[11]); V_Animation.StringArrPushIfIndex(12, ref content, "0,0"); Vector2 v10offset = V_Animation.Load_Vector2(content[12]); V_Animation.StringArrPushIfIndex(13, ref content, "0,0"); Vector2 v11offset = V_Animation.Load_Vector2(content[13]); return(new V_Skeleton_Frame(frameCount, pos, size, rot, trigger, uvType, scaleX, scaleY, sortingOrder, pivot, v00offset, v01offset, v10offset, v11offset)); }
public V_Skeleton_Frame(int _frameCount, Vector3 _pos, float size, float _rot, string _trigger, UVType _uvType, float scaleX, float scaleY, int sortingOrder, Vector2 pivot, Vector3 v00offset, Vector3 v01offset, Vector3 v10offset, Vector3 v11offset) { frameCount = _frameCount; pos = _pos; basePosition = pos; this.scaleX = scaleX; this.scaleY = scaleY; this.sortingOrder = sortingOrder; baseSortingOrder = sortingOrder; this.pivot = pivot; this.v00offset = v00offset; this.v01offset = v01offset; this.v10offset = v10offset; this.v11offset = v11offset; SetNewSize(size); rot = _rot; baseRotation = rot; RefreshVertices(); trigger = _trigger; uvType = _uvType; }
public static void Init() { if (isInit) { return; } isInit = true; #if !SILENT Debug.Log("V_Animation.Init " + DATA_LOCATION); #endif if (DATA_LOCATION == DataLocation.Assets) { Init_Folders(); } else { //UnitAnim.RenameAnimationsInResources(); // Run once when updating resources folder } UVType.Init(); UnitAnim.Init(); UnitAnimType.Init(); }
public static Vector2[] GetUV_Type(UVType uvType) { return(uvType.uvs); /* * Vector2[] * uvHead_Up, uvHead_Down, uvHead_Left, uvHead_Right, * uvBody_Up, uvBody_Down, uvBody_Left, uvBody_Right, * uvLHand, uvRHand, * uvFoot_Up, uvFoot_Down, uvFoot_Left, uvFoot_Right, * uvHat, uvSword, uvSword_InvertH, uvBow, uvArrow, uvShield, uvShieldBroken, uvTrap, uvTrap_InvertH, * uvWeaponSecondary, uvStunRock, * * uvHairHat_Down, uvHairHat_Left, uvHairHat_Right, uvHairHat_Up; * * uvHead_Right = V_UnitSkeleton.GetUV(0, 128, 512, 640); * uvBody_Right = V_UnitSkeleton.GetUV(128, 384, 256, 512); * uvLHand = V_UnitSkeleton.GetUV(0, 128, 256, 384); * * uvHead_Left = V_UnitSkeleton.GetUV(128, 0, 512, 640); * uvBody_Left = V_UnitSkeleton.GetUV(384, 128, 256, 512); * * uvHead_Down = V_UnitSkeleton.GetUV(0,128, 640, 768); * uvBody_Down = V_UnitSkeleton.GetUV(128,384, 512, 768); * uvFoot_Down = V_UnitSkeleton.GetUV(0, 128, 128, 256); * * uvHead_Up = V_UnitSkeleton.GetUV(0,128, 384, 512); * uvBody_Up = V_UnitSkeleton.GetUV(128,384, 0, 256); * * uvSword = V_UnitSkeleton.GetUV(0,256, 768, 1024); * uvSword_InvertH = V_UnitSkeleton.GetUV(256,0, 768, 1024); * * uvWeaponSecondary = V_UnitSkeleton.GetUV(256,512, 768, 1024); * * uvBow = V_UnitSkeleton.GetUV(0,256, 768, 1024); * uvArrow = V_UnitSkeleton.GetUV(256,512, 768, 1024); * * uvShield = V_UnitSkeleton.GetUV(256,512, 768, 1024); * * * uvHairHat_Down = V_UnitSkeleton.GetUV(384,640, 512, 768); * uvHairHat_Right = V_UnitSkeleton.GetUV(384,640, 256, 512); * uvHairHat_Left = V_UnitSkeleton.GetUV(640,384, 256, 512); * uvHairHat_Up = V_UnitSkeleton.GetUV(384,640, 0, 256); * * switch (uvType.preset) { * default: * case UVType.Head_Down: * return uvHead_Down; * case UVType.Head_Up: * return uvHead_Up; * case UVType.Head_Left: * return uvHead_Left; * case UVType.Head_Right: * return uvHead_Right; * * case UVType.Body_Down: * return uvBody_Down; * case UVType.Body_Up: * return uvBody_Up; * case UVType.Body_Left: * return uvBody_Left; * case UVType.Body_Right: * return uvBody_Right; * * case UVType.Hand: * case UVType.LHand: * case UVType.RHand: * return uvLHand; * * case UVType.Foot: * case UVType.Foot_Up: * case UVType.Foot_Down: * case UVType.Foot_Left: * case UVType.Foot_Right: * return uvFoot_Down; * * /*case UVType.Hat: * return uvHat;* * * case UVType.Sword: * return uvSword; * case UVType.Sword_InvertH: * return uvSword_InvertH; * * case UVType.WeaponSecondary: * return uvWeaponSecondary; * * case UVType.Bow: * return uvBow; * case UVType.Arrow: * return uvArrow; * * case UVType.Shield: * return uvShield; * * * case UVType.HairHat_Down: * return uvHairHat_Down; * case UVType.HairHat_Up: * return uvHairHat_Up; * case UVType.HairHat_Left: * return uvHairHat_Left; * case UVType.HairHat_Right: * return uvHairHat_Right; * * * case UVType.Custom: * return uvType.uvs; * }*/ }
private static void Init_Zombie() { float defaultTextureWidth = 1024; float defaultTextureHeight = 1024; int x0, x1, y0, y1; x0 = 273; x1 = 387; y0 = 797; y1 = 940; dZombie_HeadDown = new UVType("Default Zombie Head Down", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 600 }; x0 = 603; x1 = 715; y0 = 797; y1 = 940; dZombie_HeadUp = new UVType("Default v Head Up", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 601 }; x0 = 432; x1 = 546; y0 = 797; y1 = 940; dZombie_HeadRight = new UVType("Default Zombie Head Right", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 602 }; x0 = 546; x1 = 432; y0 = 797; y1 = 940; dZombie_HeadLeft = new UVType("Default Zombie Head Left", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 603 }; x0 = 252; x1 = 403; y0 = 588; y1 = 783; dZombie_BodyDown = new UVType("Default Zombie Body Down", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 604 }; x0 = 580; x1 = 735; y0 = 588; y1 = 783; dZombie_BodyUp = new UVType("Default Zombie Body Up", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 605 }; x0 = 428; x1 = 547; y0 = 588; y1 = 783; dZombie_BodyRight = new UVType("Default Zombie Body Right", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 606 }; x0 = 547; x1 = 428; y0 = 588; y1 = 783; dZombie_BodyLeft = new UVType("Default Zombie Body Left", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 607 }; x0 = 888; x1 = 947; y0 = 843; y1 = 904; dZombie_Hand = new UVType("Default Zombie Hand", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 608 }; x0 = 888; x1 = 956; y0 = 713; y1 = 785; dZombie_Foot = new UVType("Default Zombie Foot", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 609 }; x0 = 775; x1 = 877; y0 = 618; y1 = 931; dZombie_AxeBloody = new UVType("Default Zombie Axe Bloody", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 610 }; x0 = 877; x1 = 775; y0 = 618; y1 = 931; dZombie_AxeBloody_InvertH = new UVType("Default Zombie Axe Bloody Invert H", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 611 }; x0 = 775; x1 = 877; y0 = 240; y1 = 549; dZombie_Axe = new UVType("Default Zombie Axe", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 612 }; x0 = 877; x1 = 775; y0 = 240; y1 = 549; dZombie_Axe_InvertH = new UVType("Default Zombie Axe Invert H", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 613 }; x0 = 33; x1 = 211; y0 = 653; y1 = 836; dZombie_ShieldBloody = new UVType("Default Zombie Shield Bloody", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 614 }; x0 = 33; x1 = 211; y0 = 278; y1 = 458; dZombie_Shield = new UVType("Default Zombie Shield", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 615 }; }
private static void Init_Marine() { float defaultTextureWidth = 1024; float defaultTextureHeight = 512; int x0, x1, y0, y1; x0 = 275; x1 = 387; y0 = 276; y1 = 425; dMarine_HeadDown = new UVType("Default Marine Head Down", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 500 }; x0 = 608; x1 = 716; y0 = 276; y1 = 425; dMarine_HeadUp = new UVType("Default Marine Head Up", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 501 }; x0 = 430; x1 = 553; y0 = 276; y1 = 425; dMarine_HeadRight = new UVType("Default Marine Head Right", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 502 }; x0 = 553; x1 = 430; y0 = 276; y1 = 425; dMarine_HeadLeft = new UVType("Default Marine Head Left", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 503 }; x0 = 241; x1 = 412; y0 = 57; y1 = 270; dMarine_BodyDown = new UVType("Default Marine Body Down", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 504 }; x0 = 576; x1 = 743; y0 = 57; y1 = 270; dMarine_BodyUp = new UVType("Default Marine Body Up", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 505 }; x0 = 420; x1 = 557; y0 = 57; y1 = 270; dMarine_BodyRight = new UVType("Default Marine Body Right", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 506 }; x0 = 557; x1 = 420; y0 = 57; y1 = 270; dMarine_BodyLeft = new UVType("Default Marine Body Left", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 507 }; x0 = 888; x1 = 949; y0 = 331; y1 = 395; dMarine_Hand = new UVType("Default Marine Hand", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 508 }; x0 = 888; x1 = 954; y0 = 198; y1 = 272; dMarine_Foot = new UVType("Default Marine Foot", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 509 }; x0 = 70; x1 = 192; y0 = 90; y1 = 450; dMarine_Gun = new UVType("Default Marine Gun", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 510 }; x0 = 192; x1 = 70; y0 = 90; y1 = 450; dMarine_Gun_InvertH = new UVType("Default Marine Gun Invert H", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 511 }; x0 = 876; x1 = 970; y0 = 26; y1 = 158; dMarine_MuzzleFlash = new UVType("Default Marine Muzzle Flash", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 512 }; }
private static void Init_Ogre() { float defaultTextureWidth = 1024; float defaultTextureHeight = 512; int x0, x1, y0, y1; x0 = 191; x1 = 325; y0 = 311; y1 = 467; dOgre_HeadDown = new UVType("Default Ogre Head Down", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 400 }; x0 = 666; x1 = 803; y0 = 311; y1 = 467; dOgre_HeadUp = new UVType("Default Ogre Head Up", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 401 }; x0 = 446; x1 = 571; y0 = 311; y1 = 467; dOgre_HeadRight = new UVType("Default Ogre Head Right", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 402 }; x0 = 571; x1 = 446; y0 = 311; y1 = 467; dOgre_HeadLeft = new UVType("Default Ogre Head Left", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 403 }; x0 = 157; x1 = 361; y0 = 0; y1 = 306; dOgre_BodyDown = new UVType("Default Ogre Body Down", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 404 }; x0 = 630; x1 = 839; y0 = 0; y1 = 306; dOgre_BodyUp = new UVType("Default Ogre Body Up", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 405 }; x0 = 392; x1 = 579; y0 = 0; y1 = 306; dOgre_BodyRight = new UVType("Default Ogre Body Right", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 406 }; x0 = 579; x1 = 392; y0 = 0; y1 = 306; dOgre_BodyLeft = new UVType("Default Ogre Body Left", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 407 }; x0 = 877; x1 = 968; y0 = 309; y1 = 409; dOgre_Hand = new UVType("Default Ogre Hand", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 408 }; x0 = 880; x1 = 967; y0 = 202; y1 = 288; dOgre_Foot = new UVType("Default Ogre Foot", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 409 }; x0 = 40; x1 = 145; y0 = 120; y1 = 412; dOgre_Club = new UVType("Default Ogre Club", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 410 }; }
private static void Init_Persian() { float defaultTextureWidth = 1024; float defaultTextureHeight = 512; int x0, x1, y0, y1; x0 = 266; x1 = 391; y0 = 338; y1 = 485; dPersian_HeadDown = new UVType("Default Persian Head Down", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 300 }; x0 = 601; x1 = 720; y0 = 338; y1 = 485; dPersian_HeadUp = new UVType("Default Persian Head Up", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 301 }; x0 = 432; x1 = 553; y0 = 338; y1 = 485; dPersian_HeadRight = new UVType("Default Persian Head Right", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 302 }; x0 = 553; x1 = 432; y0 = 338; y1 = 485; dPersian_HeadLeft = new UVType("Default Persian Head Left", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 303 }; x0 = 234; x1 = 421; y0 = 34; y1 = 298; dPersian_BodyDown = new UVType("Default Persian Body Down", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 304 }; x0 = 566; x1 = 754; y0 = 34; y1 = 298; dPersian_BodyUp = new UVType("Default Persian Body Up", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 305 }; x0 = 421; x1 = 555; y0 = 34; y1 = 298; dPersian_BodyRight = new UVType("Default Persian Body Right", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 306 }; x0 = 555; x1 = 421; y0 = 34; y1 = 298; dPersian_BodyLeft = new UVType("Default Persian Body Left", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 307 }; x0 = 876; x1 = 962; y0 = 377; y1 = 470; dPersian_Hand = new UVType("Default Persian Hand", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 308 }; x0 = 884; x1 = 963; y0 = 257; y1 = 339; dPersian_Foot = new UVType("Default Persian Foot", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 309 }; x0 = 770; x1 = 859; y0 = 158; y1 = 481; dPersian_Sword = new UVType("Default Persian Sword", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 310 }; x0 = 14; x1 = 227; y0 = 145; y1 = 417; dPersian_Shield = new UVType("Default Persian Shield", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 311 }; x0 = 859; x1 = 770; y0 = 158; y1 = 481; dPersian_Sword_InvertH = new UVType("Default Persian Sword Invert H", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 312 }; }
private static void Init_Spartan() { float defaultTextureWidth = 1024; float defaultTextureHeight = 512; int x0, x1, y0, y1; x0 = 279; x1 = 376; y0 = 316; y1 = 467; dSpartan_HeadDown = new UVType("Default Spartan Head Down", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 200 }; x0 = 610; x1 = 712; y0 = 316; y1 = 467; dSpartan_HeadUp = new UVType("Default Spartan Head Up", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 201 }; x0 = 438; x1 = 556; y0 = 316; y1 = 467; dSpartan_HeadRight = new UVType("Default Spartan Head Right", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 202 }; x0 = 556; x1 = 438; y0 = 316; y1 = 467; dSpartan_HeadLeft = new UVType("Default Spartan Head Left", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 203 }; x0 = 247; x1 = 407; y0 = 54; y1 = 299; dSpartan_BodyDown = new UVType("Default Spartan Body Down", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 204 }; x0 = 574; x1 = 743; y0 = 54; y1 = 299; dSpartan_BodyUp = new UVType("Default Spartan Body Up", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 205 }; x0 = 414; x1 = 552; y0 = 54; y1 = 299; dSpartan_BodyRight = new UVType("Default Spartan Body Right", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 206 }; x0 = 552; x1 = 414; y0 = 54; y1 = 299; dSpartan_BodyLeft = new UVType("Default Spartan Body Left", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 207 }; x0 = 886; x1 = 949; y0 = 389; y1 = 461; dSpartan_Hand = new UVType("Default Spartan Hand", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 208 }; x0 = 886; x1 = 959; y0 = 258; y1 = 338; dSpartan_Foot = new UVType("Default Spartan Foot", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 209 }; x0 = 775; x1 = 836; y0 = 44; y1 = 485; dSpartan_Spear = new UVType("Default Spartan Spear", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 210 }; x0 = 31; x1 = 238; y0 = 168; y1 = 379; dSpartan_Shield = new UVType("Default Spartan Shield", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 211 }; }
public static void Init() { float defaultTextureWidth = 512; float defaultTextureHeight = 512; int x0, x1, y0, y1; x0 = 0; x1 = 128; y0 = 384; y1 = 512; dHeadDown = new UVType("Default Head Down", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 100 }; x0 = 256; x1 = 384; y0 = 384; y1 = 512; dHeadUp = new UVType("Default Head Up", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 101 }; x0 = 256; x1 = 128; y0 = 384; y1 = 512; dHeadLeft = new UVType("Default Head Left", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 102 }; x0 = 128; x1 = 256; y0 = 384; y1 = 512; dHeadRight = new UVType("Default Head Right", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 103 }; x0 = 0; x1 = 128; y0 = 256; y1 = 384; dBodyDown = new UVType("Default Body Down", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 104 }; x0 = 256; x1 = 384; y0 = 256; y1 = 384; dBodyUp = new UVType("Default Body Up", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 105 }; x0 = 256; x1 = 128; y0 = 256; y1 = 384; dBodyLeft = new UVType("Default Body Left", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 106 }; x0 = 128; x1 = 256; y0 = 256; y1 = 384; dBodyRight = new UVType("Default Body Right", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 107 }; x0 = 384; x1 = 448; y0 = 448; y1 = 512; dHand = new UVType("Default Hand", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 108 }; x0 = 448; x1 = 512; y0 = 448; y1 = 512; dFoot = new UVType("Default Foot", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 109 }; x0 = 0; x1 = 128; y0 = 128; y1 = 256; dWeapon = new UVType("Default Weapon", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 110 }; x0 = 128; x1 = 256; y0 = 128; y1 = 256; dSecondary = new UVType("Default Secondary", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 111 }; x0 = 128; x1 = 512; y0 = 0; y1 = 128; dRifle = new UVType("Default Rifle", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 112 }; x0 = 512; x1 = 128; y0 = 0; y1 = 128; dRifle_InvertH = new UVType("Default Rifle Invert H", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 113 }; x0 = 384; x1 = 512; y0 = 256; y1 = 384; dMuzzleFlash = new UVType("Default Muzzle Flash", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 114 }; x0 = 384; x1 = 512; y0 = 0; y1 = 256; dAxe = new UVType("Default Axe", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 115 }; x0 = 512; x1 = 384; y0 = 0; y1 = 256; dAxe_InvertH = new UVType("Default Axe Invert H", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 116 }; x0 = 128; x1 = 0; y0 = 128; y1 = 256; dWeapon_InvertH = new UVType("Default Weapon Invert H", x0 / defaultTextureWidth, y0 / defaultTextureHeight, x1 / defaultTextureWidth, y1 / defaultTextureHeight, "defaultSpriteSheet", (int)defaultTextureWidth, (int)defaultTextureHeight) { id = 117 }; Init_Spartan(); Init_Persian(); Init_Ogre(); Init_Marine(); Init_Zombie(); Init_Chicken(); }
public static string Save_Static(UVType single) { return(single.Save()); }