Logo
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Yukar.Engine.ChipInfoBase Class Reference

Base class for terrain resource instances More...

Inheritance diagram for Yukar.Engine.ChipInfoBase:
Yukar.Engine.ChipInfo Yukar.Engine.StairInfo

Public Member Functions

 ChipInfoBase (Common.Resource.MapChip i, int idx, int unit)
 
 ChipInfoBase (Common.Resource.MapChip i, int idx, int unit, string filePath, string stairsFilePath)
 
void Release ()
 
void setUV (int width, int height, ref int xofs, ref int yofs, int unit)
 
void storeCore (int height, SharpKmyGfx.Texture col, SharpKmyGfx.Texture nrm, SharpKmyGfx.Texture msk, int unit, bool ignoreDelay=false)
 
bool animateOne (int unit)
 

Public Attributes

int index
 
Common.Resource.MapChip info
 
List< SharpKmyMath.Vector2uvlist = new List<SharpKmyMath.Vector2>()
 
Color repColor = Color.White
 
int animIndex = 0
 
int vnum
 
int hnum
 
ChipInfoBase stairsChipInfo = null
 

Static Public Attributes

const int MIPLEVEL = 4
 
const int MAXMARGIN = 32
 
static Action sChipStoreErrorHandler = null
 

Detailed Description

Base class for terrain resource instances

Constructor & Destructor Documentation

◆ ChipInfoBase() [1/2]

Yukar.Engine.ChipInfoBase.ChipInfoBase ( Common.Resource.MapChip  i,
int  idx,
int  unit 
)

◆ ChipInfoBase() [2/2]

Yukar.Engine.ChipInfoBase.ChipInfoBase ( Common.Resource.MapChip  i,
int  idx,
int  unit,
string  filePath,
string  stairsFilePath 
)

Member Function Documentation

◆ animateOne()

bool Yukar.Engine.ChipInfoBase.animateOne ( int  unit)

◆ Release()

void Yukar.Engine.ChipInfoBase.Release ( )

◆ setUV()

void Yukar.Engine.ChipInfoBase.setUV ( int  width,
int  height,
ref int  xofs,
ref int  yofs,
int  unit 
)

◆ storeCore()

void Yukar.Engine.ChipInfoBase.storeCore ( int  height,
SharpKmyGfx.Texture  col,
SharpKmyGfx.Texture  nrm,
SharpKmyGfx.Texture  msk,
int  unit,
bool  ignoreDelay = false 
)

Member Data Documentation

◆ animIndex

int Yukar.Engine.ChipInfoBase.animIndex = 0

◆ hnum

int Yukar.Engine.ChipInfoBase.hnum

◆ index

int Yukar.Engine.ChipInfoBase.index

◆ info

Common.Resource.MapChip Yukar.Engine.ChipInfoBase.info

◆ MAXMARGIN

const int Yukar.Engine.ChipInfoBase.MAXMARGIN = 32
static

◆ MIPLEVEL

const int Yukar.Engine.ChipInfoBase.MIPLEVEL = 4
static

◆ repColor

Color Yukar.Engine.ChipInfoBase.repColor = Color.White

◆ sChipStoreErrorHandler

Action Yukar.Engine.ChipInfoBase.sChipStoreErrorHandler = null
static

◆ stairsChipInfo

ChipInfoBase Yukar.Engine.ChipInfoBase.stairsChipInfo = null

◆ uvlist

List<SharpKmyMath.Vector2> Yukar.Engine.ChipInfoBase.uvlist = new List<SharpKmyMath.Vector2>()

◆ vnum

int Yukar.Engine.ChipInfoBase.vnum