养老保险什么时候开始交| 玩手机头疼是什么原因| 万人空巷是什么意思| 一什么柳树| 严什么什么重| 14年属什么生肖| 点痣后用什么修复最好| 肺部结节是什么引起的| lane是什么意思| 吃什么东西增加免疫力| 性别是什么意思| 胡萝卜和什么不能一起吃| 手足口一般擦什么药膏| 猪油不凝固是什么原因| 儿童发烧吃什么药| 乳头痛什么问题| 蝉什么时候出现| 95年属什么的| 毛泽东是什么样的人| 什么防晒霜好用| 嫡孙是什么意思| onemore是什么牌子| 什么是卒中| 冬天喝什么茶好呢| 核桃什么时候吃最好| 香砂六君丸治什么病| 卡马西平是什么药| 老子是什么朝代的人| 梦见自己生病了是什么意思| 大便颗粒状是什么原因造成的| 嘴唇裂口是什么原因| 尿道口痛什么原因| 瘿瘤是什么病| 三点水的字和什么有关| 大便蛋花状是什么原因| 喝水多尿多是什么原因男性| 心灵的洗礼是什么意思| 龙鱼是什么鱼| 左膝关节退行性变是什么意思| 什么情况下会流前列腺液| 吃什么会长高| 肠道易激惹综合症是什么症状| 范仲淹是什么朝代的| cpm是什么意思| 净身高是什么意思| 放化疗后吃什么恢复快| 布洛芬的副作用是什么| 全身瘙痒要警惕什么病| 三级士官是什么级别| 尿路感染检查什么项目| 大自然的馈赠什么意思| moschino是什么品牌| 胃粘膜损伤吃什么药| ahc属于什么档次| 今日是什么日子| 剧情是什么意思| 三伏天什么时候结束| 小猫踩奶是什么意思| cooc香水是什么牌子的| 256排ct能检查什么病| 长期大便不成形是什么原因造成的| 耳道炎用什么药最有效| 2003年出生属什么| 畏寒怕冷是什么原因| 喝什么排肝毒最快| 1986年虎是什么命| 蛊惑什么意思| 熊猫尾巴什么颜色| 牙疼不能吃什么| 前列腺炎吃什么| 遇难是什么意思| 弹性是什么意思| 飞蚊症是什么引起的| 铁棍山药有什么功效| 耳垂后面疼是什么原因| 什么水果去火| 40年是什么婚姻| 农村补贴什么时候发放| durex什么意思| 和什么细什么的成语| 给事中是什么官| 旖旎是什么意思| 什么如泰山| 螃蟹过街的歇后语是什么| 什么的童话| 吃了发芽的土豆会有什么症状| 甲胎蛋白什么意思| 临床治愈什么意思| 拉肚子可以喝什么饮料| 无产阶级是什么意思| 心率快是什么原因引起的| 黄色搭配什么颜色| 汉语什么意思| 尚书是什么官| 神经递质是什么意思| 小孩吃了就吐是什么原因| 三元及第是什么意思| 唯爱是什么意思| 林黛玉是个什么样的人| 口嫌体正直什么意思| 肺热会引起什么症状| 腮腺炎吃什么药好| 踩奶是什么意思| 9月出生的是什么星座| 扁桃体肥大有什么症状| cancer是什么意思| 小孩口腔溃疡是什么原因引起的| 鸡和什么属相最配对| 牛杂是牛的什么部位| 湿疹长什么样子| 杜甫被人们称为什么| 列装是什么意思| 锻练与锻炼有什么区别| 人类的祖先是什么动物| 孕妇梦见龙是什么征兆| 什么是窦性心律不齐| 疡是什么意思| 什么叫收缩压和舒张压| 肉便器是什么意思| 小腿抽筋吃什么药| 经常头疼是什么原因引起的| 女性下小腹痛挂什么科| 青绿色是什么颜色| 为什么会有口腔溃疡| 睡觉放屁是什么原因| 料酒是什么| 尿检弱阳性是什么意思| 大排是什么肉| 怀孕生化了是什么原因| 霉菌性阴道炎用什么洗液好| 男士内裤什么材质的好| 腰椎间盘突出是什么原因引起的| 时迁是什么意思| 什么解酒快| 低血糖吃什么好的最快| 广州和广东有什么区别| 孕妇梦见掉牙齿是什么意思| 甲状腺一度肿大是什么意思| 上火嗓子疼吃什么药| 什么水没有鱼| 彰字五行属什么| 祸起萧墙是什么意思| 梦见蜘蛛网是什么意思| 甲氧氯普胺片又叫什么| below是什么意思| 尿急是什么症状| 榆字五行属什么| 唇色深的人适合什么颜色的口红| 什么叫同人文| 竹肠是什么部位| 什么粉底液最好用| 诸葛亮姓什么| 女人脑供血不足吃什么| ppe是什么| 肠胃炎可以喝什么饮料| 三岁看大七岁看老什么意思| 问加一笔是什么字| 王一博是什么星座| 舒张压是什么意思| 不明原因腿疼挂什么科| 胎盘位置低有什么危险| 矫正视力是什么意思| 梦见桥塌了有什么预兆| 什么是梅雨季节| 撒丫子是什么意思| 脉弱是什么原因导致的| 上分是什么意思| 声泪俱下是什么意思| 高血压注意什么| 误会是什么意思| 无垢是什么意思| 小乌龟吃什么东西| 怕冷是什么原因| rosa是什么意思| 医生助理是做什么的| 塬字五行属什么| 窈窕淑女是什么生肖| 减肥吃什么食物| 为什么睡久了会头疼| 微信加入黑名单和删除有什么区别| 林俊杰什么时候出道的| 血压正常心跳快是什么原因| 甲方是什么意思| 为什么男人喜欢女人| 什么是切线| 学考是什么意思| 中耳炎吃什么药效果好| 疲惫是什么意思| 房间消毒杀菌用什么好| 集体户口和个人户口有什么区别| 眩晕症是什么症状| 强直性脊柱炎看什么科| 为什么会斑秃| 眼皮水肿是什么原因引起的| 农历今天属什么生肖| 沙门氏菌用什么药| 系带是什么| 家人是什么意思| 医院属于什么单位| 福兮祸兮是什么意思| 胃病吃什么水果好| 乳头胀痛什么原因| 为什么拔罐肩膀最黑| 丙磺舒是什么药| 龙骨是什么东西| 前列腺彩超能查出什么| 固表是什么意思| 屎发黑是什么原因| 什么运动使人脸部年轻| 孕妇奶粉什么时候开始喝最好| 陈小春什么星座| 9月30日是什么纪念日| 重庆有什么区| 过期的维生素e有什么用途| 乳腺钙化是什么意思啊| 为什么不要看电焊火花| 什么颜色对眼睛有好处| 五月份是什么季节| 夜间睡觉口干口苦是什么原因| 唠嗑是什么意思| 才高八斗代表什么生肖| 草字头一个见念什么| 尺寸是什么意思| 虫字旁的字和什么有关| 眼神迷离是什么意思| 子官肌瘤吃什么食物| 逍遥丸治什么| 手足口病要注意什么| 起早贪黑是什么生肖| 大便潜血弱阳性是什么原因| 胰腺炎有什么症状| 小龙虾和什么不能一起吃| 喝什么最解渴| 有什么运动| 营养不良吃什么药| 生化检查能查出什么病| 天秤座是什么星座| 什么动物没有天敌| 扶阳是什么意思| 息风止痉是什么意思| mi是什么| 生化是检查什么的| 嘉靖为什么不杀严嵩| 小孩缺锌有什么症状| 什么是情感障碍| 反颌是什么意思| 咳嗽两个月了一直不好是什么原因| 孕酮什么意思| 精液是什么| 热疹子是什么症状图片| 燃面为什么叫燃面| 菌痢的症状是什么样| 凉拌什么菜好吃| 一什么水| 529是什么意思| 口腔医学学什么| 巴基斯坦人说什么语言| 腱鞘炎挂什么科| 科学家是干什么的| 刮宫后需要注意什么| 透明的什么填词语| 宝宝腹泻吃什么药| 昆仑玉什么颜色最贵| 不稀罕是什么意思| 百度Jump to content

常州不缺豪宅,缺岛上的环幕揽景豪宅!新闻中心中国常州网 常州第一门户网 常州龙网 常州日报 常州晚报

From Wikibooks, open books for an open world
百度 四是坚持以支部党员为主体。

 Back to the Top 

logo
Fundamentals for Trainz Trainees

Trainz Asset Maintenance and Creation
TOC | BeginningsFun | AM&C | Creation | InBook Refs ORP Refs:  • Index • Containers • Kinds • Tags | Appendixes  • Vers
 Glossary
 HKeys-CM
 HKeys-DVR
 HKeys-SUR
 HKeys-WIN
 Mouse use
 Notations


[e]
KINDs (type asset groups)
and containers


Containers in CS

[edit | edit source]

A 'container' in the realm of computer science (CS) is a typed variable which holds other values. A primitive type is an data element of the language (with a correspondence to binary machine storage types) and is used to define more complex types when combined in a container such as an array (a indexed list container with all enclosed data elements of the same kind). The 'variable' is a keyword (a symbolic reference) used as a 'human-convenient handle' for referencing the data elements of the type within, whatever types they may be. In general Computer Science, the variable values can be altered and redefined while in Trainz certain keyword names are variable and the data fixed by the Content Creator (CC)) in the config files.

That is in Trainz, containers are enumerated data types which act as keywords followed by pairs of curly braces ({ and }) enclosing the contained data within but some Trainz enumerated container types may occur in multiple instances[1] and so are sub-scripted by appending a numeric index when more than one is needed such as (the commonly seen effects containers) smoke0, smoke1, ..., smokeii.

At the base level--where things are machine dependent: nibbles make up bytes, bytes make up short words, short words make up long words, and (sometimes both short and) long words can be doubled, quadrupled (x4), quintupled (x5) or bundled into larger blocks of bytes given interpretation at the machine code level by the program's conventions for assigning and defining types.
The list above are all primitive types the hardware can manage, the interpretation and program handling of them as a language primitive type is the function of the compiler writers. A high level language when adapted to a computer architecture then uses these machine primitives to define it's language specific data elements or primative types. Other more complex types are all defined in terms of those.
Applications programs rely on those definitions for types such as characters (this text), integers (no fractions, please!), floating point values (decimals in base 10 represented in base 2 --binary or machine form). These Computer Languages must of necessity also have matching primitives, known as pointers to describe the memory address (or physical address) of any and all data elements of each of those primitives. If the element cannot be directly accessed in a random access operation, it is not a discrete element which makes it part of a larger element--a container which holds it's physical state.
In bitwise arithmetic, an integer will frequently be used with particular bits having an associated meaning. These are said to be flags, and together with a bit mask are often used as classifications (is part of this set, satisfies this condition, meets or doesn't meet this test) for determination of further processing. These are YES-NO or TRUE-FALSE evaluations, operations of boolean logic.

When the data primitives need to be handled in bunches, a container type is used.

  • A string is a container containing characters that are not meant to be processed as numeric data, or simply text; though the legal representation of text depends on how the text is coded (unicode, ASCII, BOM, etc.).
  • An array, an indexed randomly accessible group of values is another type of container. The array of a type (integer, strings, etc.) can hold elements of each matching primitive type. At the machine level, the beginning of the array is an address ('A'), the value at that address is the first element which can hold a value of that type. The next element is offset by the length (L) of the type of data in bytes—the lowest data form which can be individually addressed (indexed for random access)— so the (address of the first element + L) or (A + L) gives the address of the next element. This can be written with an index or cursor variable 'I' so that the Nth element, where I= (N-1) can be addressed by Ai = (A + L * I) often represented by V[i], where V is a variable name. The maximum number of elements in an array is thus N, since the V[0] must be a offset in address arithmetic of zero, and V[N] is an illegal index for it calculates an address in another place in memory not allocated to the array. V[N-1] is thus the last element of N declared memory addresses L bytes in length.
  • A matrix


Trainz containers

[edit | edit source]
  1. An asset or content is a file folder on the OS file system containing the self-definition files for itself, and which are then incorporated into the Trainz data base as managed by TrainzUtil and Content Manager. Most assets require component parts, or other assets to completely render a digital model, or a run time asset such as Trainz sessions and Routes.
    1. Surveyor module is used to build gameplay worlds on a kind Map (a 'Layout' or 'Route' asset) by placing such content/assets on the Map's Data Base—which is all incorporated in the maps KUID folder, which keeps it all organized.
    2. The Surveyor module' Session Editor is also used to write Sessions which combine Rules representing Scriptletts that are compiled into run time code to create a 'scenario' for game play stored in a Session's KUID folder as a kind profile. These are significantly different in composition and capability from the historic 'Scenarios' type which are pre-scripted in a TrainzScript application and saved as Activities. KIND Activities were discontinued after TS2012, and the menu button for launching them doesn't show up unless one is in the data base.
  2. All assets contain a header or self-definitions file Trainz calls config.txt, a resource organizing and parameters declaring text file without which the asset self-definition fails, or has Faults per the spin N3V twists the term to mean.
  3. A .cdp file (or .cdp2, .cdpa variations) is another trains container, a portable compressed data collection we receive from other Trainzer, across Trainz versions by export and import, and the data form uploaded and downloaded from the DLS.
  4. A Trainz container is an enumerated (defined and constrained) data structure of a complex type, which may include tags, often dummy tags, and values or references (KUIDS) as well as sub-containers container.
    1. They often contain variable length (to the CC) array declarations (passenger attachment point pass parameters) which are used to allocate actual memory and initialization values as modified by the accompanying defining tags in the same structure or by inheritance from the parent container.
    2. What containers are legal in a config, depends on the asset KIND tag definition.
    3. Include files are a computer science class implemented in Trainz by texture.txt files and by reference, meaning listing a KUID of a component dependency. Texture.txt files in Trainz confusingly in the config.txt declarations MUST NOT have the extension .txt, but end with .texture extensions.
    4. In the Trainz hierarchy, KINDs are an upper level complex type with implicit nesting of the necessary tags.
      1. That is just about all kind definitions add some tags in the config not nested in the paired curly braces characteristic a general kind PLUS an element that is a container in appearance.
      2. These are de facto sub-containers special to only that KIND, whereas a Trainz container type is more general purpose, so declarable and used in more than one KIND requirement. In effect, the containers are really sub-containers of KIND which satisfy the broader needs of several to many asset self-definitions.
      3. The implicit nesting is controlled by declaration of the kind tag, so KIND tags not inside it's special sub-containers can be processed correctly.

Notes and footnotes

[edit | edit source]

References

[edit | edit source]
  1. Definition: instances
糗事是什么意思 什么的粉墙 pcl是什么意思 雀神是什么意思 胃气上逆吃什么药
什么是副乳 拉磨是什么意思 叩是什么意思 口臭挂什么科 宫腔镜是什么手术
怀孕什么时候有反应 h2o是什么 大黄是什么药材 孕检唐筛是检查什么的 吃什么药能让月经推迟
眩晕症是什么原因引起 为什么男人喜欢邓文迪 胃烧心是什么症状 mrsa是什么细菌 鲱鱼在中国叫什么鱼
cps什么意思hcv8jop6ns8r.cn 抗炎是什么意思shenchushe.com 忘川是什么意思hcv9jop2ns4r.cn 头发属于什么组织imcecn.com 尿糖2个加号是什么意思hcv7jop9ns3r.cn
毛拉是什么意思hcv7jop5ns3r.cn 血糖高是什么原因引起的hcv7jop4ns5r.cn 反式脂肪是什么意思hcv7jop9ns7r.cn 财多身弱什么意思hcv7jop6ns7r.cn 55年出生属什么hcv9jop4ns4r.cn
男性检查挂什么科hcv7jop6ns5r.cn 缺铁性贫血吃什么食物好hcv8jop2ns1r.cn 省委副书记是什么级别hcv8jop8ns8r.cn 小孩老是眨眼睛是什么原因hcv8jop3ns9r.cn 番薯是什么hcv9jop2ns2r.cn
心脏不舒服吃什么药最好hcv7jop9ns3r.cn 金与什么相生相克hcv7jop6ns4r.cn 冥想是什么hcv8jop9ns8r.cn 前置胎盘需要注意什么hcv8jop2ns1r.cn egcg是什么hcv8jop2ns2r.cn
百度